Fix memory corruption on console reset.

This commit is contained in:
Christian Speckner 2018-06-23 01:18:35 +02:00
parent ef5261689a
commit 176507cb46
1 changed files with 4 additions and 0 deletions

View File

@ -206,6 +206,10 @@ Console::~Console()
// Some smart controllers need to be informed that the console is going away
myLeftControl->close();
myRightControl->close();
// Close audio to prevent invalid access to myConsoleTiming from the audio
// callback
myOSystem.sound().close();
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -