Ensure the GBA thread exits when destroying the game controller

This commit is contained in:
Jeffrey Pfau 2014-01-28 23:15:47 -08:00
parent 4659635fb5
commit 8a82144ceb
1 changed files with 2 additions and 0 deletions

View File

@ -31,6 +31,8 @@ GameController::GameController(QObject* parent)
}
GameController::~GameController() {
GBAThreadEnd(&m_threadContext);
GBAThreadJoin(&m_threadContext);
delete m_renderer;
}