summaryrefslogtreecommitdiffstats
path: root/modules/mono/mono_gc_handle.cpp
diff options
context:
space:
mode:
authorIgnacio Etcheverry <neikeq@users.noreply.github.com>2019-02-03 07:36:33 +0100
committerGitHub <noreply@github.com>2019-02-03 07:36:33 +0100
commit919fa75803177d0dc8f03c16b6be1360140145e1 (patch)
tree51ea7ff251f7ca76cfbf9946f0c6a41efb9584f0 /modules/mono/mono_gc_handle.cpp
parent248dbb251722432502e579a3ad6c4b5ed96af76f (diff)
parent3233083f63dc668b8dd21290d25a511212f114d8 (diff)
downloadredot-engine-919fa75803177d0dc8f03c16b6be1360140145e1.tar.gz
Merge pull request #25574 from neikeq/ss
Mono: Lifetime fixes for CSharpInstance and instance binding data
Diffstat (limited to 'modules/mono/mono_gc_handle.cpp')
-rw-r--r--modules/mono/mono_gc_handle.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/mono/mono_gc_handle.cpp b/modules/mono/mono_gc_handle.cpp
index b6c9b5f7dd..a9e2136a19 100644
--- a/modules/mono/mono_gc_handle.cpp
+++ b/modules/mono/mono_gc_handle.cpp
@@ -65,7 +65,7 @@ Ref<MonoGCHandle> MonoGCHandle::create_weak(MonoObject *p_object) {
void MonoGCHandle::release() {
#ifdef DEBUG_ENABLED
- CRASH_COND(GDMono::get_singleton() == NULL);
+ CRASH_COND(!released && GDMono::get_singleton() == NULL);
#endif
if (!released && GDMono::get_singleton()->is_runtime_initialized()) {