Преглед изворни кода

SDL_test: free state before logging allocations

Anonymous Maarten пре 2 година
родитељ
комит
b4bfb18318
1 измењених фајлова са 1 додато и 1 уклоњено
  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)                  \