Don't free the deferred rects using FreeVec on exit as they're itempools

This commit is contained in:
Chris Young 2016-01-23 12:11:33 +00:00
parent 4b0ebae56a
commit 9e5bf6fb68
2 changed files with 7 additions and 3 deletions

View File

@ -80,9 +80,9 @@ APTR ami_misc_itempool_alloc(APTR pool, int size)
void ami_misc_itempool_free(APTR pool, APTR item, int size)
{
#ifdef __amigaos4__
return ItemPoolFree(pool, item);
ItemPoolFree(pool, item);
#else
return FreePooled(pool, item, size);
FreePooled(pool, item, size);
#endif
}

View File

@ -124,7 +124,11 @@ void FreeObjList(struct MinList *objlist)
do {
nnode=(struct nsObject *)GetSucc((struct Node *)node);
if(node->Type == AMINS_RECT) {
DelObjectNoFree(node);
} else {
DelObject(node);
}
} while((node=nnode));
FreeVec(objlist);