all repos — mgba @ 0f6523941c165a8f7981c8c4afe2d9573878479c

mGBA Game Boy Advance Emulator

Null out threadContext->gba when shutting down
Jeffrey Pfau jeffrey@endrift.com
Mon, 03 Feb 2014 00:42:20 -0800
commit

0f6523941c165a8f7981c8c4afe2d9573878479c

parent

56c51181e1fa5b9c6a9cebc469771adee2f4cc21

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

jump to
M src/gba/gba-thread.csrc/gba/gba-thread.c

@@ -133,6 +133,7 @@ if (threadContext->cleanCallback) {

threadContext->cleanCallback(threadContext); } + threadContext->gba = 0; GBADeinit(&gba); ConditionWake(&threadContext->sync.videoFrameAvailableCond);