mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-30 15:31:59 +00:00
In OSystem_SDL::closeMixer moved the call to SDL_CloseAudio to before the deletion of the _mixer variable in to fix an assert that was being generated in OSystem_SDL::mixCallback
svn-id: r33095
This commit is contained in:
parent
702e26965c
commit
cb366384f7
@ -550,11 +550,12 @@ void OSystem_SDL::setupMixer() {
|
||||
void OSystem_SDL::closeMixer() {
|
||||
if (_mixer)
|
||||
_mixer->setReady(false);
|
||||
delete _mixer;
|
||||
_mixer = 0;
|
||||
|
||||
SDL_CloseAudio();
|
||||
|
||||
delete _mixer;
|
||||
_mixer = 0;
|
||||
|
||||
#ifdef MIXER_DOUBLE_BUFFERING
|
||||
deinitThreadedMixer();
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user