diff options
author | Jan Haller <bromeon@gmail.com> | 2021-04-04 15:53:10 +0200 |
---|---|---|
committer | Jan Haller <bromeon@gmail.com> | 2021-04-04 16:11:16 +0200 |
commit | 0fe851da23050c28e85ba4165b24d603c8c3b382 (patch) | |
tree | 2cbee1e0c5469d10303291d62fff39338a61ad34 | |
parent | 29c7319f609589dca07e2209ee3a12b5552335f6 (diff) |
Fixes #47607 (forgotten statement in GDNative cleanup)
Co-authored-by: geekrelief <geekrelief@gmail.com>
-rw-r--r-- | modules/gdnative/nativescript/nativescript.cpp | 2 |
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); |