summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorThomas Herzog <thomas.herzog@mail.com>2017-10-09 01:24:21 +0200
committerGitHub <noreply@github.com>2017-10-09 01:24:21 +0200
commitdc6bb74c4638be6989dcb042895af9c75682f0c5 (patch)
treef008e9ea7f72dbfeafc90eca8c6658191a929566 /modules
parentff28569d16ad1558484b3029ac2fd52f7a411ffe (diff)
parent6363bcf209d90d2ff1baf1b22bb8d8c7c1d1b7fd (diff)
Merge pull request #11952 from touilleMan/fix-crash-gdnative
[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();