diff options
author | eriktorbjorn | 2011-05-07 22:16:49 +0200 |
---|---|---|
committer | eriktorbjorn | 2011-05-07 22:20:15 +0200 |
commit | 490e9a5cefe4fd993b64503cd0d16b496d164086 (patch) | |
tree | 9cf046bc4a63d873c2ed8c355ac17c4f0fb11c99 /engines | |
parent | 16f0dcc00b96db001fad8c6a035576a72540d5dc (diff) | |
download | scummvm-rg350-490e9a5cefe4fd993b64503cd0d16b496d164086.tar.gz scummvm-rg350-490e9a5cefe4fd993b64503cd0d16b496d164086.tar.bz2 scummvm-rg350-490e9a5cefe4fd993b64503cd0d16b496d164086.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.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; |