mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-06 23:31:53 -05: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