mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 00:13:30 +00:00
C#: Fix crash with DisposablesTracker_OnGodotShuttingDown
This commit is contained in:
parent
a3c49ad2f0
commit
d515fcc47a
2 changed files with 4 additions and 6 deletions
|
@ -139,6 +139,10 @@ void CSharpLanguage::finalize() {
|
|||
return;
|
||||
}
|
||||
|
||||
if (gdmono && gdmono->is_runtime_initialized() && GDMonoCache::godot_api_cache_updated) {
|
||||
GDMonoCache::managed_callbacks.DisposablesTracker_OnGodotShuttingDown();
|
||||
}
|
||||
|
||||
finalizing = true;
|
||||
|
||||
// Make sure all script binding gchandles are released before finalizing GDMono
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue