Dispose sound channels before shutting down cmixer

This commit is contained in:
Iliyas Jorio 2022-09-02 20:51:05 +02:00
parent 2c22e02554
commit bf2469b659
1 changed files with 1 additions and 1 deletions

View File

@ -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();
}