1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

Merge pull request #78157 from RedworkDE/net-shutting-down-abruptly

C#: Fix crash with `DisposablesTracker_OnGodotShuttingDown`
This commit is contained in:
Rémi Verschelde
2023-10-31 20:52:27 +01:00
committed by GitHub
2 changed files with 4 additions and 6 deletions

View File

@@ -142,6 +142,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