Pārlūkot izejas kodu

stb_leakcheck: Make stb_leakcheck_free actually free.

Fixes issue #307.
Fabian Giesen 8 gadi atpakaļ
vecāks
revīzija
5a5cf7f9ba
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  1. 1 0
      stb_leakcheck.h

+ 1 - 0
stb_leakcheck.h

@@ -59,6 +59,7 @@ void stb_leakcheck_free(void *ptr)
       if (mi->next)
       if (mi->next)
          mi->next->prev = mi->prev;
          mi->next->prev = mi->prev;
       #endif
       #endif
+      free(ptr);
    }
    }
 }
 }