Browse Source

Fixes #47607 (forgotten statement in GDNative cleanup)

Co-authored-by: geekrelief <[email protected]>
Jan Haller 4 years ago
parent
commit
0fe851da23
1 changed files with 2 additions and 0 deletions
  1. 2 0
      modules/gdnative/nativescript/nativescript.cpp

+ 2 - 0
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);
 						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);
 			Map<String, Ref<GDNative>>::Element *G = library_gdnatives.find(script->lib_path);