Fixed allocation tracking on OS X.

This commit is contained in:
Pietro Gagliardi 2015-05-08 18:54:42 -04:00
parent cc1491d1a7
commit cf89124be5
1 changed files with 2 additions and 1 deletions

View File

@ -78,6 +78,7 @@ void uiFree(void *p)
{
if (p == NULL)
complain("attempt to uiFree(NULL); there's a bug somewhere");
free(BASE(p));
p = BASE(p);
free(p);
[allocations removeObject:[NSValue valueWithPointer:p]];
}