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;
|
--debugger->traceRemaining;
|
||||||
}
|
}
|
||||||
if (!debugger->traceRemaining) {
|
if (!debugger->traceRemaining) {
|
||||||
debugger->traceVf->close(debugger->traceVf);
|
if (debugger->traceVf) {
|
||||||
debugger->traceVf = NULL;
|
debugger->traceVf->close(debugger->traceVf);
|
||||||
|
debugger->traceVf = NULL;
|
||||||
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in New Issue