Browse Source

Fixed memory leak in memory leak tracking

Sam Lantinga 6 tháng trước cách đây
mục cha
commit
99336ea378
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      src/test/SDL_test_memory.c

+ 1 - 0
src/test/SDL_test_memory.c

@@ -454,4 +454,5 @@ void SDLTest_LogAllocations(void)
 #undef ADD_LINE
 
     SDL_Log("%s", message);
+    SDL_free_orig(message);
 }