Fixed allocation tracking on OS X.
This commit is contained in:
parent
cc1491d1a7
commit
cf89124be5
|
@ -78,6 +78,7 @@ void uiFree(void *p)
|
||||||
{
|
{
|
||||||
if (p == NULL)
|
if (p == NULL)
|
||||||
complain("attempt to uiFree(NULL); there's a bug somewhere");
|
complain("attempt to uiFree(NULL); there's a bug somewhere");
|
||||||
free(BASE(p));
|
p = BASE(p);
|
||||||
|
free(p);
|
||||||
[allocations removeObject:[NSValue valueWithPointer:p]];
|
[allocations removeObject:[NSValue valueWithPointer:p]];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue