diff --git a/modules/gdnative/register_types.cpp b/modules/gdnative/register_types.cpp index 997c3420455..059cd197d13 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();