From f012ab023d6257dfc476e9154ca71db411c95e96 Mon Sep 17 00:00:00 2001 From: NicJA Date: Thu, 29 Apr 2010 00:19:14 +0000 Subject: [PATCH] Also dispose of the layer if we are replacing a previous back buffer git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@33108 fb15a70f-31f2-0310-bbcc-cdcc74a49acc --- workbench/system/Wanderer/Classes/iconlist.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/workbench/system/Wanderer/Classes/iconlist.c b/workbench/system/Wanderer/Classes/iconlist.c index c4d1ef351f..9544daa45f 100644 --- a/workbench/system/Wanderer/Classes/iconlist.c +++ b/workbench/system/Wanderer/Classes/iconlist.c @@ -1734,9 +1734,8 @@ IPTR IconList__OM_SET(struct IClass *CLASS, Object *obj, struct opSet *message) #endif if ((data->icld_BufferRastPort) && (data->icld_BufferRastPort != data->icld_DisplayRastPort)) { - //Free up the buffers rastport and bitmap so we can replace them .. - FreeBitMap(data->icld_BufferRastPort->BitMap); - FreeRastPort(data->icld_BufferRastPort); + //Free up the buffers Layer, rastport and bitmap so we can replace them .. + DeleteLayer(NULL, data->icld_BufferRastPort->Layer); SET(obj, MUIA_IconList_BufferRastport, NULL); } tmp_RastDepth = GetCyberMapAttr(data->icld_DisplayRastPort->BitMap, CYBRMATTR_DEPTH); -- 2.11.4.GIT