diff options
author | Gregory Montoir | 2006-11-15 22:35:45 +0000 |
---|---|---|
committer | Gregory Montoir | 2006-11-15 22:35:45 +0000 |
commit | 24df07d29dfeae8df28b74744f71962eb34686fc (patch) | |
tree | f8a26b7076fc30957a87acec8189689385b14590 /engines/touche/midi.cpp | |
parent | f55320f988a481ee7d92bcce39dfcbbf31d4151a (diff) | |
download | scummvm-rg350-24df07d29dfeae8df28b74744f71962eb34686fc.tar.gz scummvm-rg350-24df07d29dfeae8df28b74744f71962eb34686fc.tar.bz2 scummvm-rg350-24df07d29dfeae8df28b74744f71962eb34686fc.zip |
added handler for flag 618 (cursor display on/off) and workaround a palette glitch
svn-id: r24724
Diffstat (limited to 'engines/touche/midi.cpp')
-rw-r--r-- | engines/touche/midi.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/touche/midi.cpp b/engines/touche/midi.cpp index fd8a9c4add..8420a9b7dc 100644 --- a/engines/touche/midi.cpp +++ b/engines/touche/midi.cpp @@ -105,10 +105,12 @@ void MidiPlayer::close() { _driver->setTimerCallback(NULL, NULL); _mutex.unlock(); stop(); - _parser->setMidiDriver(NULL); - delete _parser; + _mutex.lock(); _driver->close(); _driver = 0; + _parser->setMidiDriver(NULL); + delete _parser; + _mutex.unlock(); } void MidiPlayer::send(uint32 b) { |