Sound: fix static initialization order dependency by not having one (#7168)
authornOOb3167 <nOOb3167@gmail.com>
Thu, 29 Mar 2018 19:43:57 +0000 (21:43 +0200)
committerSmallJoker <SmallJoker@users.noreply.github.com>
Thu, 29 Mar 2018 19:43:57 +0000 (21:43 +0200)
Ensure singleton is reset

src/client/clientlauncher.cpp

index 2f85911795fa4a27741e77720f0a985beeb5fc6d..051e4c24234ad52b0980f53e6341685cddfcd359 100644 (file)
@@ -64,6 +64,10 @@ ClientLauncher::~ClientLauncher()
        delete g_gamecallback;
 
        delete RenderingEngine::get_instance();
+
+#if USE_SOUND
+       g_sound_manager_singleton.reset();
+#endif
 }