Explorar o código

[GDnative] fix crash at cleanup time when singleton_gdnatives is not empty

Emmanuel Leblond %!s(int64=8) %!d(string=hai) anos
pai
achega
6363bcf209
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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();