More Simon shutdown cleanup

svn-id: r9602
This commit is contained in:
Jamieson Christian 2003-08-08 09:48:42 +00:00
parent 47d98f94db
commit 0ca58111c6
2 changed files with 3 additions and 2 deletions

View file

@ -92,12 +92,12 @@ int MidiPlayer::open() {
void MidiPlayer::close() {
stop();
_system->lock_mutex (_mutex);
// _system->lock_mutex (_mutex);
if (_driver)
_driver->close();
_driver = NULL;
clearConstructs();
_system->unlock_mutex (_mutex);
// _system->unlock_mutex (_mutex);
}
void MidiPlayer::send (uint32 b) {

View file

@ -4544,6 +4544,7 @@ void SimonEngine::delay(uint amount) {
case OSystem::EVENT_QUIT:
shutdown();
return;
break;
default: