diff options
| author | Ignacio Etcheverry <ignalfonsore@gmail.com> | 2021-03-15 07:08:06 +0100 |
|---|---|---|
| committer | Ignacio Etcheverry <ignalfonsore@gmail.com> | 2021-03-15 07:08:10 +0100 |
| commit | 5b3b9cd63bd3cc57851799e0912b1ed770598434 (patch) | |
| tree | 2ddd07e2d4e3cfcc61b326c7f72d151c3041d9c4 /modules/mono/csharp_script.h | |
| parent | b060ca680a640904af7fd25b5aaa9f30f1182319 (diff) | |
| download | redot-engine-5b3b9cd63bd3cc57851799e0912b1ed770598434.tar.gz | |
C#: Fix disconnecting event signals twice
`disconnect_event_signals` can be called twice (when managed instance
is disposed and from the ScriptInstance destructor).
Diffstat (limited to 'modules/mono/csharp_script.h')
| -rw-r--r-- | modules/mono/csharp_script.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/mono/csharp_script.h b/modules/mono/csharp_script.h index 40f7ed4552..dd93a86d7a 100644 --- a/modules/mono/csharp_script.h +++ b/modules/mono/csharp_script.h @@ -271,6 +271,8 @@ class CSharpInstance : public ScriptInstance { Ref<CSharpScript> script; MonoGCHandleData gchandle; + List<Callable> connected_event_signals; + bool _reference_owner_unsafe(); /* |
