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