aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authoreriktorbjorn2011-05-07 22:16:49 +0200
committereriktorbjorn2011-05-07 22:19:59 +0200
commit94c7e37ac38d991e96f2336e0a09e748fcbd1080 (patch)
tree7b67ccb860dbea56566e68a9501aba2c0ace48e5 /engines
parent8dd17a2ae11db5033d732d3f625ec48ab556f2f3 (diff)
downloadscummvm-rg350-94c7e37ac38d991e96f2336e0a09e748fcbd1080.tar.gz
scummvm-rg350-94c7e37ac38d991e96f2336e0a09e748fcbd1080.tar.bz2
scummvm-rg350-94c7e37ac38d991e96f2336e0a09e748fcbd1080.zip
QUEEN: Delete the parser before closing the driver.
Deleting the parser may fire off a series of events, so it's probably a good idea to keep the driver open for that. I have not seen this error anywhere else, except maybe in the unit tests.
Diffstat (limited to 'engines')
-rw-r--r--engines/queen/music.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/queen/music.cpp b/engines/queen/music.cpp
index 58ecfa6d16..5d1a06ccb2 100644
--- a/engines/queen/music.cpp
+++ b/engines/queen/music.cpp
@@ -99,8 +99,8 @@ MidiMusic::MidiMusic(QueenEngine *vm)
MidiMusic::~MidiMusic() {
_driver->setTimerCallback(0, 0);
_parser->unloadMusic();
- _driver->close();
delete _parser;
+ _driver->close();
delete _driver;
delete[] _buf;
delete[] _musicData;