mirror of https://github.com/mgba-emu/mgba.git
Qt: Ensure audio processor is paused before closing thread
This commit is contained in:
parent
52bc70ad73
commit
3ba2ce1ea9
|
@ -586,6 +586,8 @@ void GameController::cleanGame() {
|
||||||
if (!m_gameOpen || mCoreThreadIsActive(&m_threadContext)) {
|
if (!m_gameOpen || mCoreThreadIsActive(&m_threadContext)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
m_audioProcessor->pause();
|
||||||
mCoreThreadJoin(&m_threadContext);
|
mCoreThreadJoin(&m_threadContext);
|
||||||
|
|
||||||
delete[] m_drawContext;
|
delete[] m_drawContext;
|
||||||
|
|
Loading…
Reference in New Issue