From 3e47da2e18e37ee2226b65aca029b67eb16d7585 Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Fri, 24 Nov 2023 22:10:09 -0800 Subject: [PATCH] SDL: Fix minor leak if debugger isn't used --- src/platform/sdl/main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/platform/sdl/main.c b/src/platform/sdl/main.c index b1cb0efdd..8f75384f0 100644 --- a/src/platform/sdl/main.c +++ b/src/platform/sdl/main.c @@ -247,6 +247,8 @@ int mSDLRun(struct mSDLRenderer* renderer, struct mArguments* args) { #ifdef ENABLE_SCRIPTING mScriptBridgeSetDebugger(bridge, &debugger); #endif + } else { + mDebuggerDeinit(&debugger); } #endif