Sfoglia il codice sorgente

Fixed memory leak in memory leak tracking

Sam Lantinga 6 mesi fa
parent
commit
99336ea378
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  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);
 }