From ba83c4d9d35f310db40fa366d6e15ae69a7c4fc2 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 96a797986..9bbe2aeb8 100644 --- a/src/platform/sdl/main.c +++ b/src/platform/sdl/main.c @@ -255,6 +255,8 @@ int mSDLRun(struct mSDLRenderer* renderer, struct mArguments* args) { #ifdef ENABLE_SCRIPTING mScriptBridgeSetDebugger(bridge, debugger); #endif + } else { + mDebuggerDeinit(&debugger); } #endif