summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Haller <bromeon@gmail.com>2021-04-04 15:53:10 +0200
committerJan Haller <bromeon@gmail.com>2021-04-04 16:11:16 +0200
commit0fe851da23050c28e85ba4165b24d603c8c3b382 (patch)
tree2cbee1e0c5469d10303291d62fff39338a61ad34
parent29c7319f609589dca07e2209ee3a12b5552335f6 (diff)
Fixes #47607 (forgotten statement in GDNative cleanup)
Co-authored-by: geekrelief <geekrelief@gmail.com>
-rw-r--r--modules/gdnative/nativescript/nativescript.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/gdnative/nativescript/nativescript.cpp b/modules/gdnative/nativescript/nativescript.cpp
index 5d2117d76c..2a3202c0b8 100644
--- a/modules/gdnative/nativescript/nativescript.cpp
+++ b/modules/gdnative/nativescript/nativescript.cpp
@@ -1759,6 +1759,8 @@ void NativeScriptLanguage::unregister_script(NativeScript *script) {
C->get().destroy_func.free_func(C->get().destroy_func.method_data);
}
}
+
+ library_classes.erase(script->lib_path);
}
Map<String, Ref<GDNative>>::Element *G = library_gdnatives.find(script->lib_path);