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 committed 2024-07-28 08:05:31 -07:00
1 parent b5ad74998b
commit 728bf363cb
14 files changed
+16 -4

No files matched your search

+1 -1
View File
@@ -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);