mirror of https://github.com/mgba-emu/mgba.git
Debugger: Fix crash when tracing without a file output
This commit is contained in:
parent
69a8aa5520
commit
98799dae6d
|
@ -753,8 +753,10 @@ static bool _doTrace(struct CLIDebugger* debugger) {
|
|||
--debugger->traceRemaining;
|
||||
}
|
||||
if (!debugger->traceRemaining) {
|
||||
debugger->traceVf->close(debugger->traceVf);
|
||||
debugger->traceVf = NULL;
|
||||
if (debugger->traceVf) {
|
||||
debugger->traceVf->close(debugger->traceVf);
|
||||
debugger->traceVf = NULL;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
|
Loading…
Reference in New Issue