Merge pull request #11158 from bncastle/master

unregister_gdnative_types() now checks if discoverer pointer is NULL before deleting
This commit is contained in:
Thomas Herzog 2017-09-10 23:44:38 +02:00 committed by GitHub
commit 5f39f3a2df
1 changed files with 1 additions and 1 deletions

View File

@ -248,7 +248,7 @@ void unregister_gdnative_types() {
memdelete(GDNativeCallRegistry::singleton); memdelete(GDNativeCallRegistry::singleton);
#ifdef TOOLS_ENABLED #ifdef TOOLS_ENABLED
if (Engine::get_singleton()->is_editor_hint()) { if (Engine::get_singleton()->is_editor_hint() && discoverer != NULL) {
memdelete(discoverer); memdelete(discoverer);
} }
#endif #endif