mirror of https://github.com/mgba-emu/mgba.git
SDL: Fix minor leak if debugger isn't used
This commit is contained in:
parent
0e3d55c2ac
commit
ba83c4d9d3
|
@ -255,6 +255,8 @@ int mSDLRun(struct mSDLRenderer* renderer, struct mArguments* args) {
|
||||||
#ifdef ENABLE_SCRIPTING
|
#ifdef ENABLE_SCRIPTING
|
||||||
mScriptBridgeSetDebugger(bridge, debugger);
|
mScriptBridgeSetDebugger(bridge, debugger);
|
||||||
#endif
|
#endif
|
||||||
|
} else {
|
||||||
|
mDebuggerDeinit(&debugger);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue