Fix double-ending the GBA thread

This commit is contained in:
Jeffrey Pfau 2014-10-15 02:48:37 -07:00
parent 39b5396c0b
commit 49b676fa7e
1 changed files with 2 additions and 2 deletions

View File

@ -90,8 +90,8 @@ GameController::~GameController() {
if (GBAThreadIsPaused(&m_threadContext)) { if (GBAThreadIsPaused(&m_threadContext)) {
GBAThreadUnpause(&m_threadContext); GBAThreadUnpause(&m_threadContext);
} }
GBAThreadEnd(&m_threadContext); disconnect();
GBAThreadJoin(&m_threadContext); closeGame();
delete m_renderer; delete m_renderer;
} }