From e33b5a478dd3060aedac8143ed4e94f2ae386dde Mon Sep 17 00:00:00 2001 From: Paul Licameli Date: Thu, 15 Jul 2021 09:47:35 -0400 Subject: [PATCH] Sequence of AudioIO and NetworkManager shutdowns fixes crash at exit --- src/AudacityApp.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/AudacityApp.cpp b/src/AudacityApp.cpp index 0a368b37d..996c66c6f 100644 --- a/src/AudacityApp.cpp +++ b/src/AudacityApp.cpp @@ -2236,6 +2236,10 @@ int AudacityApp::OnExit() DeinitFFT(); +#ifdef HAS_NETWORKING + audacity::network_manager::NetworkManager::GetInstance().Terminate(); +#endif + AudioIO::Deinit(); MenuTable::DestroyRegistry(); @@ -2243,10 +2247,6 @@ int AudacityApp::OnExit() // Terminate the PluginManager (must be done before deleting the locale) PluginManager::Get().Terminate(); -#ifdef HAS_NETWORKING - audacity::network_manager::NetworkManager::GetInstance().Terminate(); -#endif - return 0; }