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:
Sam Lantinga
2024-07-28 07:46:44 -07:00
parent b5ad74998b
commit 728bf363cb
14 changed files with 16 additions and 4 deletions

View File

@@ -74,6 +74,7 @@ int SDL_AppInit(void **appstate, int argc, char *argv[])
NULL,
};
SDLTest_CommonLogUsage(state, argv[0], options);
SDL_Quit();
SDLTest_CommonDestroyState(state);
return 1;
}