1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-06 12:20:30 +00:00

C#: Fix disconnecting event signals twice

`disconnect_event_signals` can be called twice (when managed instance
is disposed and from the ScriptInstance destructor).
This commit is contained in:
Ignacio Etcheverry
2021-03-15 07:08:06 +01:00
parent b060ca680a
commit 5b3b9cd63b
2 changed files with 11 additions and 11 deletions

View File

@@ -271,6 +271,8 @@ class CSharpInstance : public ScriptInstance {
Ref<CSharpScript> script;
MonoGCHandleData gchandle;
List<Callable> connected_event_signals;
bool _reference_owner_unsafe();
/*