mirror of https://github.com/mgba-emu/mgba.git
Fix double-ending the GBA thread
This commit is contained in:
parent
39b5396c0b
commit
49b676fa7e
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue