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

This commit is contained in:
Emmanuel Leblond 2017-10-09 00:31:25 +02:00
parent b9702991a1
commit 6363bcf209
No known key found for this signature in database
GPG key ID: C360860E645EFFC0

View file

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