mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 00:13:30 +00:00
Mono: Change BindingsGenerator singleton to avoid StringName leaks
This commit is contained in:
parent
b271aa48e4
commit
fe391393d4
4 changed files with 30 additions and 18 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue