mirror of https://github.com/mgba-emu/mgba.git
Null out threadContext->gba when shutting down
This commit is contained in:
parent
56c51181e1
commit
0f6523941c
|
@ -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