From 6363bcf209d90d2ff1baf1b22bb8d8c7c1d1b7fd Mon Sep 17 00:00:00 2001 From: Emmanuel Leblond Date: Mon, 9 Oct 2017 00:31:25 +0200 Subject: [GDnative] fix crash at cleanup time when singleton_gdnatives is not empty --- modules/gdnative/register_types.cpp | 1 + 1 file changed, 1 insertion(+) 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(); -- cgit v1.2.3