aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregory Montoir2006-12-29 23:43:36 +0000
committerGregory Montoir2006-12-29 23:43:36 +0000
commitc553807bfcbab50ff9c5fe063e0bdb6e6088d950 (patch)
treefade03cfc010ed830fdc494c98bd05f84f87c409
parentc01839bbe98f62b242d7f3bbc72a8095ae28d94c (diff)
downloadscummvm-rg350-c553807bfcbab50ff9c5fe063e0bdb6e6088d950.tar.gz
scummvm-rg350-c553807bfcbab50ff9c5fe063e0bdb6e6088d950.tar.bz2
scummvm-rg350-c553807bfcbab50ff9c5fe063e0bdb6e6088d950.zip
minor simplification
svn-id: r24948
-rw-r--r--engines/touche/midi.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/engines/touche/midi.cpp b/engines/touche/midi.cpp
index 8420a9b7dc..398eefc5b5 100644
--- a/engines/touche/midi.cpp
+++ b/engines/touche/midi.cpp
@@ -101,11 +101,9 @@ int MidiPlayer::open() {
}
void MidiPlayer::close() {
- _mutex.lock();
- _driver->setTimerCallback(NULL, NULL);
- _mutex.unlock();
stop();
_mutex.lock();
+ _driver->setTimerCallback(NULL, NULL);
_driver->close();
_driver = 0;
_parser->setMidiDriver(NULL);