Null out threadContext->gba when shutting down

This commit is contained in:
Jeffrey Pfau 2014-02-03 00:42:20 -08:00
parent 9f3cf19c2d
commit acc58fccc9
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);