Qt: Fix audio context holding onto closed game controller

This commit is contained in:
Vicki Pfau 2019-02-16 16:54:41 -08:00
parent cb238a1567
commit fa6583051e
2 changed files with 6 additions and 0 deletions

View File

@ -5,6 +5,7 @@ Bugfixes:
- GBA Memory: Fix a few AGBPrint crashes
- GBA Memory: Fix OOB ROM reads showing up as AGBPrint memory
- GB Serialize: Fix loading states with negative pixel x (fixes mgba.io/i/1293)
- Qt: Fix audio context holding onto closed game controller
Misc:
- GBA Video: Improve sprite cycle counting (fixes mgba.io/i/1274)

View File

@ -795,6 +795,11 @@ void Window::gameStopped() {
m_fpsTimer.stop();
m_focusCheck.stop();
if (m_audioProcessor) {
m_audioProcessor->stop();
m_audioProcessor.reset();
}
emit paused(false);
}