summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorEmmanuel Leblond <emmanuel.leblond@gmail.com>2017-10-09 00:31:25 +0200
committerEmmanuel Leblond <emmanuel.leblond@gmail.com>2017-10-09 00:31:25 +0200
commit6363bcf209d90d2ff1baf1b22bb8d8c7c1d1b7fd (patch)
treecc94ed3f511ccf0eb9e8904601001d75de5eee5b /modules
parentb9702991a199109b6dce1d6b54800b1e9235aa57 (diff)
[GDnative] fix crash at cleanup time when singleton_gdnatives is not empty
Diffstat (limited to 'modules')
-rw-r--r--modules/gdnative/register_types.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/gdnative/register_types.cpp b/modules/gdnative/register_types.cpp
index 997c342045..059cd197d1 100644
--- a/modules/gdnative/register_types.cpp
+++ b/modules/gdnative/register_types.cpp
@@ -247,6 +247,7 @@ void unregister_gdnative_types() {
singleton_gdnatives[i]->terminate();
}
+ singleton_gdnatives.clear();
unregister_nativescript_types();