From: nOOb3167 Date: Thu, 29 Mar 2018 19:43:57 +0000 (+0200) Subject: Sound: fix static initialization order dependency by not having one (#7168) X-Git-Tag: 5.0.0~482 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=376ed5cd3c0c61135230a2a14b873436d551d266;p=oweals%2Fminetest.git Sound: fix static initialization order dependency by not having one (#7168) Ensure singleton is reset --- diff --git a/src/client/clientlauncher.cpp b/src/client/clientlauncher.cpp index 2f8591179..051e4c242 100644 --- a/src/client/clientlauncher.cpp +++ b/src/client/clientlauncher.cpp @@ -64,6 +64,10 @@ ClientLauncher::~ClientLauncher() delete g_gamecallback; delete RenderingEngine::get_instance(); + +#if USE_SOUND + g_sound_manager_singleton.reset(); +#endif }