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) void ami_misc_itempool_free(APTR pool, APTR item, int size)
{ {
#ifdef __amigaos4__ #ifdef __amigaos4__
return ItemPoolFree(pool, item); ItemPoolFree(pool, item);
#else #else
return FreePooled(pool, item, size); FreePooled(pool, item, size);
#endif #endif
} }

View File

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