소스 검색

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

Emmanuel Leblond 8 년 전
부모
커밋
6363bcf209
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();