diff options
author | eriktorbjorn | 2011-05-07 22:16:49 +0200 |
---|---|---|
committer | eriktorbjorn | 2011-05-07 22:19:59 +0200 |
commit | 94c7e37ac38d991e96f2336e0a09e748fcbd1080 (patch) | |
tree | 7b67ccb860dbea56566e68a9501aba2c0ace48e5 | |
parent | 8dd17a2ae11db5033d732d3f625ec48ab556f2f3 (diff) | |
download | scummvm-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.
-rw-r--r-- | engines/queen/music.cpp | 2 |
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; |