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);