You've already forked godot
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:
@@ -271,6 +271,8 @@ class CSharpInstance : public ScriptInstance {
|
||||
Ref<CSharpScript> script;
|
||||
MonoGCHandleData gchandle;
|
||||
|
||||
List<Callable> connected_event_signals;
|
||||
|
||||
bool _reference_owner_unsafe();
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user