Fixed a crash when exiting, a regression from the latest music driver changes

svn-id: r40922
This commit is contained in:
Filippos Karapetis 2009-05-26 19:05:20 +00:00
parent 50157fbca9
commit 3e29b47ec3

View File

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