mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-04-19 22:10:52 +00:00
Make sure we call SDL_Quit() before SDLTest_CommonDestroyState()
Otherwise we'll report leaks that will be cleaned up in SDL_Quit()
This commit is contained in:
@@ -28,8 +28,8 @@ static SDLTest_CommonState *state;
|
||||
static void
|
||||
quit(int rc)
|
||||
{
|
||||
SDLTest_CommonDestroyState(state);
|
||||
SDL_Quit();
|
||||
SDLTest_CommonDestroyState(state);
|
||||
/* Let 'main()' return normally */
|
||||
if (rc != 0) {
|
||||
exit(rc);
|
||||
|
||||
Reference in New Issue
Block a user