diff options
author | Gregory Montoir | 2006-12-29 23:43:36 +0000 |
---|---|---|
committer | Gregory Montoir | 2006-12-29 23:43:36 +0000 |
commit | c553807bfcbab50ff9c5fe063e0bdb6e6088d950 (patch) | |
tree | fade03cfc010ed830fdc494c98bd05f84f87c409 | |
parent | c01839bbe98f62b242d7f3bbc72a8095ae28d94c (diff) | |
download | scummvm-rg350-c553807bfcbab50ff9c5fe063e0bdb6e6088d950.tar.gz scummvm-rg350-c553807bfcbab50ff9c5fe063e0bdb6e6088d950.tar.bz2 scummvm-rg350-c553807bfcbab50ff9c5fe063e0bdb6e6088d950.zip |
minor simplification
svn-id: r24948
-rw-r--r-- | engines/touche/midi.cpp | 4 |
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); |