Fixed a memory leak in ptrarray.c.
This commit is contained in:
parent
5cf19dcc17
commit
53a4eefe2a
|
@ -12,6 +12,8 @@ void ptrArrayDestroy(struct ptrArray *p)
|
|||
{
|
||||
if (p->len != 0)
|
||||
complain("attempt to destroy ptrarray %p while it still has pointers inside", p);
|
||||
if (p->ptrs != NULL) // array was created but nothing was ever put inside
|
||||
uiFree(p->ptrs);
|
||||
uiFree(p);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue