diff --git a/src/platform/qt/GameController.cpp b/src/platform/qt/GameController.cpp index a68788146..70455a5ba 100644 --- a/src/platform/qt/GameController.cpp +++ b/src/platform/qt/GameController.cpp @@ -90,8 +90,8 @@ GameController::~GameController() { if (GBAThreadIsPaused(&m_threadContext)) { GBAThreadUnpause(&m_threadContext); } - GBAThreadEnd(&m_threadContext); - GBAThreadJoin(&m_threadContext); + disconnect(); + closeGame(); delete m_renderer; }