mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
Fixed a crash when exiting, a regression from the latest music driver changes
svn-id: r40922
This commit is contained in:
@@ -438,8 +438,10 @@ void sfx_exit(sfx_state_t *self) {
|
||||
player = 0;
|
||||
}
|
||||
|
||||
if (strcmp(player->name, "new") == 0)
|
||||
g_system->getMixer()->stopAll();
|
||||
// FIXME: player is deleted here by the code above, so this will crash.
|
||||
// Is that code needed?
|
||||
//if (strcmp(player->name, "new") == 0)
|
||||
// g_system->getMixer()->stopAll();
|
||||
|
||||
song_lib_free(self->songlib);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user