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:
Paul Gilbert 2008-07-18 09:36:49 +00:00
parent 702e26965c
commit cb366384f7

View File

@ -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