GDExtension: Prevent crash during shutdown as singletons are deleted
This commit is contained in:
@ -295,6 +295,9 @@ GDExtensionManager::GDExtensionManager() {
|
||||
}
|
||||
|
||||
GDExtensionManager::~GDExtensionManager() {
|
||||
if (singleton == this) {
|
||||
singleton = nullptr;
|
||||
}
|
||||
#ifndef DISABLE_DEPRECATED
|
||||
GDExtensionCompatHashes::finalize();
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user