Null out threadContext->gba when shutting down

This commit is contained in:
Jeffrey Pfau 2014-02-03 00:42:20 -08:00
parent 56c51181e1
commit 0f6523941c
1 changed files with 1 additions and 0 deletions

View File

@ -133,6 +133,7 @@ static THREAD_ENTRY _GBAThreadRun(void* context) {
threadContext->cleanCallback(threadContext);
}
threadContext->gba = 0;
GBADeinit(&gba);
ConditionWake(&threadContext->sync.videoFrameAvailableCond);