mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-11 21:55:27 +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() {
|
void OSystem_SDL::closeMixer() {
|
||||||
if (_mixer)
|
if (_mixer)
|
||||||
_mixer->setReady(false);
|
_mixer->setReady(false);
|
||||||
delete _mixer;
|
|
||||||
_mixer = 0;
|
|
||||||
|
|
||||||
SDL_CloseAudio();
|
SDL_CloseAudio();
|
||||||
|
|
||||||
|
delete _mixer;
|
||||||
|
_mixer = 0;
|
||||||
|
|
||||||
#ifdef MIXER_DOUBLE_BUFFERING
|
#ifdef MIXER_DOUBLE_BUFFERING
|
||||||
deinitThreadedMixer();
|
deinitThreadedMixer();
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user