mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-06-01 09:27:39 +00:00
testcamera: SDL_AppQuit destroys state and SDL
This fixes a double-free of SDLTest_CommonState
This commit is contained in:
parent
03e00cd347
commit
5c214e5e9c
1 changed files with 0 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue