You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Mono: Change BindingsGenerator singleton to avoid StringName leaks
This commit is contained in:
@@ -124,6 +124,14 @@ void CSharpLanguage::finish() {
|
||||
|
||||
finalizing = true;
|
||||
|
||||
#ifdef TOOLS_ENABLED
|
||||
// Must be here, to avoid StringName leaks
|
||||
if (BindingsGenerator::singleton) {
|
||||
memdelete(BindingsGenerator::singleton);
|
||||
BindingsGenerator::singleton = NULL;
|
||||
}
|
||||
#endif
|
||||
|
||||
// Release gchandle bindings before finalizing mono runtime
|
||||
gchandle_bindings.clear();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user