testcamera: SDL_AppQuit destroys state and SDL

This fixes a double-free of SDLTest_CommonState
This commit is contained in:
Anonymous Maarten 2025-02-22 07:01:18 +01:00 committed by Sam Lantinga
parent 03e00cd347
commit 5c214e5e9c

View file

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