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