Fixed a crash when exiting, a regression from the latest music driver changes
svn-id: r40922
This commit is contained in:
parent
50157fbca9
commit
3e29b47ec3
1 changed files with 4 additions and 2 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue