mirror of https://github.com/mgba-emu/mgba.git
Null out threadContext->gba when shutting down
This commit is contained in:
parent
9f3cf19c2d
commit
acc58fccc9
|
@ -133,6 +133,7 @@ static THREAD_ENTRY _GBAThreadRun(void* context) {
|
|||
threadContext->cleanCallback(threadContext);
|
||||
}
|
||||
|
||||
threadContext->gba = 0;
|
||||
GBADeinit(&gba);
|
||||
|
||||
ConditionWake(&threadContext->sync.videoFrameAvailableCond);
|
||||
|
|
Loading…
Reference in New Issue