SDL: Fix minor leak if debugger isn't used

This commit is contained in:
Vicki Pfau 2023-11-24 22:10:09 -08:00
parent 0e3d55c2ac
commit ba83c4d9d3
1 changed files with 2 additions and 0 deletions

View File

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