From acc58fccc9770bbaadefdfd8524ec17a347ec3b3 Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Mon, 3 Feb 2014 00:42:20 -0800 Subject: [PATCH] Null out threadContext->gba when shutting down --- src/gba/gba-thread.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gba/gba-thread.c b/src/gba/gba-thread.c index dee501702..318415ec1 100644 --- a/src/gba/gba-thread.c +++ b/src/gba/gba-thread.c @@ -133,6 +133,7 @@ static THREAD_ENTRY _GBAThreadRun(void* context) { threadContext->cleanCallback(threadContext); } + threadContext->gba = 0; GBADeinit(&gba); ConditionWake(&threadContext->sync.videoFrameAvailableCond);