From 5c214e5e9c40b1d2030f290438f9292fcced4523 Mon Sep 17 00:00:00 2001 From: Anonymous Maarten Date: Sat, 22 Feb 2025 07:01:18 +0100 Subject: [PATCH] testcamera: SDL_AppQuit destroys state and SDL This fixes a double-free of SDLTest_CommonState --- test/testcamera.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/test/testcamera.c b/test/testcamera.c index 7d3e64cb43..b27092112a 100644 --- a/test/testcamera.c +++ b/test/testcamera.c @@ -97,8 +97,6 @@ SDL_AppResult SDL_AppInit(void **appstate, int argc, char *argv[]) NULL, }; SDLTest_CommonLogUsage(state, argv[0], options); - SDL_Quit(); - SDLTest_CommonDestroyState(state); return SDL_APP_FAILURE; } i += consumed;