Merge pull request #69769 from adamscott/fix-navigation-shape-leak

Move navigation server finalize before physics server
This commit is contained in:
Rémi Verschelde 2022-12-09 06:34:39 +01:00 committed by GitHub
commit 622e516f20
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3363,6 +3363,7 @@ void Main::cleanup(bool p_force) {
finalize_theme_db();
// Before deinitializing server extensions, finalize servers which may be loaded as extensions.
finalize_navigation_server();
finalize_physics();
NativeExtensionManager::get_singleton()->deinitialize_extensions(NativeExtension::INITIALIZATION_LEVEL_SERVERS);
@ -3386,7 +3387,6 @@ void Main::cleanup(bool p_force) {
OS::get_singleton()->finalize();
finalize_navigation_server();
finalize_display();
if (input) {