mirror of https://github.com/mgba-emu/mgba.git
Ensure the GBA thread exits when destroying the game controller
This commit is contained in:
parent
4659635fb5
commit
8a82144ceb
|
@ -31,6 +31,8 @@ GameController::GameController(QObject* parent)
|
||||||
}
|
}
|
||||||
|
|
||||||
GameController::~GameController() {
|
GameController::~GameController() {
|
||||||
|
GBAThreadEnd(&m_threadContext);
|
||||||
|
GBAThreadJoin(&m_threadContext);
|
||||||
delete m_renderer;
|
delete m_renderer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue