소스 검색

stb_leakcheck: Derp, I should free the right thing.

Fixes #307, this time for real.
Fabian Giesen 8 년 전
부모
커밋
7725f8b9cd
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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);
    }
 }