diff --git a/src/test/SDL_test_common.c b/src/test/SDL_test_common.c index 4cf98b63cd..25279bcb18 100644 --- a/src/test/SDL_test_common.c +++ b/src/test/SDL_test_common.c @@ -147,8 +147,8 @@ SDLTest_CommonState *SDLTest_CommonCreateState(char **argv, Uint32 flags) } void SDLTest_CommonDestroyState(SDLTest_CommonState *state) { - SDLTest_LogAllocations(); SDL_free(state); + SDLTest_LogAllocations(); } #define SEARCHARG(dim) \