From 5b3b9cd63bd3cc57851799e0912b1ed770598434 Mon Sep 17 00:00:00 2001 From: Ignacio Etcheverry Date: Mon, 15 Mar 2021 07:08:06 +0100 Subject: C#: Fix disconnecting event signals twice `disconnect_event_signals` can be called twice (when managed instance is disposed and from the ScriptInstance destructor). --- modules/mono/csharp_script.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'modules/mono/csharp_script.h') 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 script; MonoGCHandleData gchandle; + List connected_event_signals; + bool _reference_owner_unsafe(); /* -- cgit v1.2.3