all repos — mgba @ 98799dae6d1e293a6aa255b7700c05a29e609b35

mGBA Game Boy Advance Emulator

Debugger: Fix crash when tracing without a file output
Vicki Pfau vi@endrift.com
Sat, 28 Nov 2020 20:43:43 -0800
commit

98799dae6d1e293a6aa255b7700c05a29e609b35

parent

69a8aa55204ffbe79d19a1a8768f41c4bf694e5d

1 files changed, 4 insertions(+), 2 deletions(-)

jump to
M src/debugger/cli-debugger.csrc/debugger/cli-debugger.c

@@ -753,8 +753,10 @@ if (debugger->traceRemaining > 0) {

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