summaryrefslogtreecommitdiffstats
path: root/core/extension
diff options
context:
space:
mode:
Diffstat (limited to 'core/extension')
-rw-r--r--core/extension/gdextension_manager.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/extension/gdextension_manager.cpp b/core/extension/gdextension_manager.cpp
index a4d032f22f..1ee9de0776 100644
--- a/core/extension/gdextension_manager.cpp
+++ b/core/extension/gdextension_manager.cpp
@@ -295,6 +295,9 @@ GDExtensionManager::GDExtensionManager() {
}
GDExtensionManager::~GDExtensionManager() {
+ if (singleton == this) {
+ singleton = nullptr;
+ }
#ifndef DISABLE_DEPRECATED
GDExtensionCompatHashes::finalize();
#endif