diff options
author | Filippos Karapetis | 2009-05-26 19:05:20 +0000 |
---|---|---|
committer | Filippos Karapetis | 2009-05-26 19:05:20 +0000 |
commit | 3e29b47ec30bb0a137496ce0589fe81fbbdf18db (patch) | |
tree | 998d1e777b374a2388fcd9181838f89386ca0160 | |
parent | 50157fbca9e442d9c376f68edb1a9c73ae91b4b1 (diff) | |
download | scummvm-rg350-3e29b47ec30bb0a137496ce0589fe81fbbdf18db.tar.gz scummvm-rg350-3e29b47ec30bb0a137496ce0589fe81fbbdf18db.tar.bz2 scummvm-rg350-3e29b47ec30bb0a137496ce0589fe81fbbdf18db.zip |
Fixed a crash when exiting, a regression from the latest music driver changes
svn-id: r40922
-rw-r--r-- | engines/sci/sfx/core.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/sci/sfx/core.cpp b/engines/sci/sfx/core.cpp index f542d86ae4..d819ef7b9b 100644 --- a/engines/sci/sfx/core.cpp +++ b/engines/sci/sfx/core.cpp @@ -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); |