mirror of https://github.com/stella-emu/stella.git
Fix memory corruption on console reset.
This commit is contained in:
parent
ef5261689a
commit
176507cb46
|
@ -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();
|
||||
}
|
||||
|
||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
|
|
Loading…
Reference in New Issue