Browse Source

Merge pull request #11952 from touilleMan/fix-crash-gdnative

[GDnative] fix crash at cleanup time when singleton_gdnatives is not empty
Thomas Herzog 8 years ago
parent
commit
dc6bb74c46
1 changed files with 1 additions and 0 deletions
  1. 1 0
      modules/gdnative/register_types.cpp

+ 1 - 0
modules/gdnative/register_types.cpp

@@ -247,6 +247,7 @@ void unregister_gdnative_types() {
 
 		singleton_gdnatives[i]->terminate();
 	}
+	singleton_gdnatives.clear();
 
 	unregister_nativescript_types();