Explorar o código

stb_leakcheck: Derp, I should free the right thing.

Fixes #307, this time for real.
Fabian Giesen %!s(int64=8) %!d(string=hai) anos
pai
achega
7725f8b9cd
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      stb_leakcheck.h

+ 1 - 1
stb_leakcheck.h

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