diff --git a/src/platform/qt/GameController.cpp b/src/platform/qt/GameController.cpp index 6ab37e6be..6c28edfe7 100644 --- a/src/platform/qt/GameController.cpp +++ b/src/platform/qt/GameController.cpp @@ -94,6 +94,7 @@ GameController::~GameController() { m_audioThread->wait(); disconnect(); closeGame(); + GBAInputMapDeinit(&m_threadContext.inputMap); delete m_renderer; delete[] m_drawContext; }