From 9e5bf6fb6869ebfe66e5ec84de4d9c55330bcc93 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Sat, 23 Jan 2016 12:11:33 +0000 Subject: [PATCH] Don't free the deferred rects using FreeVec on exit as they're itempools --- amiga/misc.c | 4 ++-- amiga/object.c | 6 +++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/amiga/misc.c b/amiga/misc.c index 97e9f9f1c..ea888e021 100755 --- a/amiga/misc.c +++ b/amiga/misc.c @@ -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 } diff --git a/amiga/object.c b/amiga/object.c index aab66bb43..6fedb9737 100755 --- a/amiga/object.c +++ b/amiga/object.c @@ -124,7 +124,11 @@ void FreeObjList(struct MinList *objlist) do { nnode=(struct nsObject *)GetSucc((struct Node *)node); - DelObject(node); + if(node->Type == AMINS_RECT) { + DelObjectNoFree(node); + } else { + DelObject(node); + } } while((node=nnode)); FreeVec(objlist);