Explorar o código

SDL_test: free state before logging allocations

Anonymous Maarten %!s(int64=2) %!d(string=hai) anos
pai
achega
b4bfb18318
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/test/SDL_test_common.c

+ 1 - 1
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)                  \