From 3e29b47ec30bb0a137496ce0589fe81fbbdf18db Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Tue, 26 May 2009 19:05:20 +0000 Subject: Fixed a crash when exiting, a regression from the latest music driver changes svn-id: r40922 --- engines/sci/sfx/core.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'engines') 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); -- cgit v1.2.3