|
@@ -581,8 +581,6 @@ void Main::test_cleanup() {
|
|
|
TextServerManager::get_singleton()->get_interface(i)->cleanup();
|
|
|
}
|
|
|
|
|
|
- EngineDebugger::deinitialize();
|
|
|
-
|
|
|
ResourceLoader::remove_custom_loaders();
|
|
|
ResourceSaver::remove_custom_savers();
|
|
|
|
|
@@ -594,6 +592,7 @@ void Main::test_cleanup() {
|
|
|
|
|
|
GDExtensionManager::get_singleton()->deinitialize_extensions(GDExtension::INITIALIZATION_LEVEL_SCENE);
|
|
|
uninitialize_modules(MODULE_INITIALIZATION_LEVEL_SCENE);
|
|
|
+
|
|
|
unregister_platform_apis();
|
|
|
unregister_driver_types();
|
|
|
unregister_scene_types();
|
|
@@ -604,8 +603,12 @@ void Main::test_cleanup() {
|
|
|
uninitialize_modules(MODULE_INITIALIZATION_LEVEL_SERVERS);
|
|
|
unregister_server_types();
|
|
|
|
|
|
+ EngineDebugger::deinitialize();
|
|
|
OS::get_singleton()->finalize();
|
|
|
|
|
|
+ if (packed_data) {
|
|
|
+ memdelete(packed_data);
|
|
|
+ }
|
|
|
if (translation_server) {
|
|
|
memdelete(translation_server);
|
|
|
}
|
|
@@ -621,16 +624,13 @@ void Main::test_cleanup() {
|
|
|
if (globals) {
|
|
|
memdelete(globals);
|
|
|
}
|
|
|
- if (packed_data) {
|
|
|
- memdelete(packed_data);
|
|
|
- }
|
|
|
if (engine) {
|
|
|
memdelete(engine);
|
|
|
}
|
|
|
|
|
|
unregister_core_driver_types();
|
|
|
- uninitialize_modules(MODULE_INITIALIZATION_LEVEL_CORE);
|
|
|
unregister_core_extensions();
|
|
|
+ uninitialize_modules(MODULE_INITIALIZATION_LEVEL_CORE);
|
|
|
unregister_core_types();
|
|
|
|
|
|
OS::get_singleton()->finalize_core();
|