Merge pull request #15684 from karroffel/nativescript-windows-editor-crash
[GDNative] fix editor crash with NativeScript
This commit is contained in:
commit
859ac6233d
|
@ -835,11 +835,13 @@ NativeScriptLanguage::~NativeScriptLanguage() {
|
|||
|
||||
for (Map<String, Ref<GDNative> >::Element *L = NSL->library_gdnatives.front(); L; L = L->next()) {
|
||||
|
||||
if (L->get().is_valid())
|
||||
L->get()->terminate();
|
||||
}
|
||||
|
||||
NSL->library_classes.clear();
|
||||
NSL->library_gdnatives.clear();
|
||||
NSL->library_script_users.clear();
|
||||
}
|
||||
|
||||
#ifndef NO_THREADS
|
||||
memdelete(mutex);
|
||||
|
|
Loading…
Reference in New Issue