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:
@@ -58,6 +58,7 @@ iostrm_error_quit(unsigned line, SDL_IOStream *iostrm)
|
||||
SDL_CloseIO(iostrm);
|
||||
}
|
||||
cleanup();
|
||||
SDL_Quit();
|
||||
SDLTest_CommonDestroyState(state);
|
||||
exit(1); /* quit with iostrm error (test failed) */
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user