From b4bfb1831888cabcc47bfdb88920d5ec9024edd8 Mon Sep 17 00:00:00 2001 From: Anonymous Maarten Date: Tue, 22 Aug 2023 18:42:56 +0200 Subject: [PATCH] SDL_test: free state before logging allocations --- src/test/SDL_test_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) \