More Simon shutdown cleanup
svn-id: r9602
This commit is contained in:
parent
47d98f94db
commit
0ca58111c6
2 changed files with 3 additions and 2 deletions
|
@ -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) {
|
||||
|
|
|
@ -4544,6 +4544,7 @@ void SimonEngine::delay(uint amount) {
|
|||
|
||||
case OSystem::EVENT_QUIT:
|
||||
shutdown();
|
||||
return;
|
||||
break;
|
||||
|
||||
default:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue