You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
[GDNative] fix editor crash with NativeScript
This commit is contained in:
@@ -835,12 +835,14 @@ NativeScriptLanguage::~NativeScriptLanguage() {
|
|||||||
|
|
||||||
for (Map<String, Ref<GDNative> >::Element *L = NSL->library_gdnatives.front(); L; L = L->next()) {
|
for (Map<String, Ref<GDNative> >::Element *L = NSL->library_gdnatives.front(); L; L = L->next()) {
|
||||||
|
|
||||||
L->get()->terminate();
|
if (L->get().is_valid())
|
||||||
NSL->library_classes.clear();
|
L->get()->terminate();
|
||||||
NSL->library_gdnatives.clear();
|
|
||||||
NSL->library_script_users.clear();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
NSL->library_classes.clear();
|
||||||
|
NSL->library_gdnatives.clear();
|
||||||
|
NSL->library_script_users.clear();
|
||||||
|
|
||||||
#ifndef NO_THREADS
|
#ifndef NO_THREADS
|
||||||
memdelete(mutex);
|
memdelete(mutex);
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user