mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-18 16:03:05 +00:00
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:
parent
8dd17a2ae1
commit
94c7e37ac3
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user