Fix crashing on exit

This commit is contained in:
Jeffrey Pfau 2014-10-13 22:22:43 -07:00
parent 2e031a8c49
commit 49d668f285
1 changed files with 1 additions and 0 deletions

View File

@ -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);
} }