all repos — mgba @ 8a82144ceb56398f2827c6abf8668972fb9caefb

mGBA Game Boy Advance Emulator

Ensure the GBA thread exits when destroying the game controller
Jeffrey Pfau jeffrey@endrift.com
Tue, 28 Jan 2014 23:15:47 -0800
commit

8a82144ceb56398f2827c6abf8668972fb9caefb

parent

4659635fb57e27c15bc2419130d5e0c9542d6fef

1 files changed, 2 insertions(+), 0 deletions(-)

jump to
M src/platform/qt/GameController.cppsrc/platform/qt/GameController.cpp

@@ -31,6 +31,8 @@ m_threadContext.rewindBufferCapacity = 0;

} GameController::~GameController() { + GBAThreadEnd(&m_threadContext); + GBAThreadJoin(&m_threadContext); delete m_renderer; }