瀏覽代碼

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

[GDnative] fix crash at cleanup time when singleton_gdnatives is not empty
Thomas Herzog 8 年之前
父節點
當前提交
dc6bb74c46
共有 1 個文件被更改,包括 1 次插入0 次删除
  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();