mirror of https://github.com/mgba-emu/mgba.git
Fix crashing on exit
This commit is contained in:
parent
2e031a8c49
commit
49d668f285
|
@ -87,6 +87,7 @@ GameController::GameController(QObject* parent)
|
||||||
|
|
||||||
GameController::~GameController() {
|
GameController::~GameController() {
|
||||||
m_audioThread->quit();
|
m_audioThread->quit();
|
||||||
|
m_audioThread->wait();
|
||||||
if (GBAThreadIsPaused(&m_threadContext)) {
|
if (GBAThreadIsPaused(&m_threadContext)) {
|
||||||
GBAThreadUnpause(&m_threadContext);
|
GBAThreadUnpause(&m_threadContext);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue