From f1a384fa83b7c624e818eb41ca95af517a0b9f45 Mon Sep 17 00:00:00 2001 From: Christian Speckner Date: Fri, 10 Aug 2018 00:11:47 +0200 Subject: [PATCH] Terminate audio after the SoundSDL2 has been destroyed. --- src/common/SoundSDL2.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/common/SoundSDL2.cxx b/src/common/SoundSDL2.cxx index 25ec5c1bb..c9749e843 100644 --- a/src/common/SoundSDL2.cxx +++ b/src/common/SoundSDL2.cxx @@ -91,6 +91,7 @@ SoundSDL2::~SoundSDL2() if (!myIsInitializedFlag) return; SDL_CloseAudioDevice(myDevice); + SDL_QuitSubSystem(SDL_INIT_AUDIO); } // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -