aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlyssa Milburn2011-01-02 14:23:18 +0000
committerAlyssa Milburn2011-01-02 14:23:18 +0000
commit1f579add9fdb98015e30a4c39026f5fca517e1b2 (patch)
tree71b11c118f64906b2b6dbdff021b5df87bb3f8c4
parentfd5754d6af59f7c6da499230273503014e4be2e4 (diff)
downloadscummvm-rg350-1f579add9fdb98015e30a4c39026f5fca517e1b2.tar.gz
scummvm-rg350-1f579add9fdb98015e30a4c39026f5fca517e1b2.tar.bz2
scummvm-rg350-1f579add9fdb98015e30a4c39026f5fca517e1b2.zip
MOHAWK: Don't delete the MIDI driver before the parser.
The parser was trying to call into the deleted driver. svn-id: r55093
-rw-r--r--engines/mohawk/sound.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/engines/mohawk/sound.cpp b/engines/mohawk/sound.cpp
index fd825b1575..77028e1604 100644
--- a/engines/mohawk/sound.cpp
+++ b/engines/mohawk/sound.cpp
@@ -45,15 +45,15 @@ Sound::~Sound() {
stopSound();
stopAllSLST();
- if (_midiDriver) {
- _midiDriver->close();
- delete _midiDriver;
- }
-
if (_midiParser) {
_midiParser->unloadMusic();
delete _midiParser;
}
+
+ if (_midiDriver) {
+ _midiDriver->close();
+ delete _midiDriver;
+ }
}
void Sound::initMidi() {