You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
C#: Fix crash when disposing Reference on domain finalize
This commit is contained in:
@@ -1407,6 +1407,8 @@ bool CSharpInstance::_unreference_owner_unsafe() {
|
||||
if (!unsafe_referenced)
|
||||
return false; // Already unreferenced
|
||||
|
||||
unsafe_referenced = false;
|
||||
|
||||
// Called from CSharpInstance::mono_object_disposed() or ~CSharpInstance()
|
||||
|
||||
// Unsafe refcount decrement. The managed instance also counts as a reference.
|
||||
|
||||
Reference in New Issue
Block a user