瀏覽代碼

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