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.
This commit is contained in:
eriktorbjorn 2011-05-07 22:16:49 +02:00
parent 8dd17a2ae1
commit 94c7e37ac3

View File

@ -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;