mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-19 02:32:44 +03:00
Don't free the deferred rects using FreeVec on exit as they're itempools
This commit is contained in:
parent
4b0ebae56a
commit
9e5bf6fb68
@ -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
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user