From 0fe851da23050c28e85ba4165b24d603c8c3b382 Mon Sep 17 00:00:00 2001 From: Jan Haller Date: Sun, 4 Apr 2021 15:53:10 +0200 Subject: [PATCH] Fixes #47607 (forgotten statement in GDNative cleanup) Co-authored-by: geekrelief --- modules/gdnative/nativescript/nativescript.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/gdnative/nativescript/nativescript.cpp b/modules/gdnative/nativescript/nativescript.cpp index 5d2117d76cb..2a3202c0b81 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>::Element *G = library_gdnatives.find(script->lib_path);