From bf2469b659ba09d58c1040f17934b6acaff69dcd Mon Sep 17 00:00:00 2001 From: Iliyas Jorio Date: Fri, 2 Sep 2022 20:51:05 +0200 Subject: [PATCH] Dispose sound channels before shutting down cmixer --- src/SoundMixer/SoundManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SoundMixer/SoundManager.cpp b/src/SoundMixer/SoundManager.cpp index 87d00f1..d8b6b6d 100644 --- a/src/SoundMixer/SoundManager.cpp +++ b/src/SoundMixer/SoundManager.cpp @@ -402,9 +402,9 @@ void Pomme::Sound::InitMixer() void Pomme::Sound::ShutdownMixer() { - cmixer::ShutdownWithSDL(); while (Pomme::Sound::gHeadChan) { SndDisposeChannel(Pomme::Sound::gHeadChan->macChannel, true); } + cmixer::ShutdownWithSDL(); }