2 Copyright © 1995-2011, The AROS Development Team. All rights reserved.
3 Copyright © 2001-2003, The MorphOS Development Team. All Rights Reserved.
6 Support function for icclass and gadgetclass.
9 #include <exec/types.h>
10 #include <proto/exec.h>
11 #include <proto/utility.h>
13 #include "intuition_intern.h"
15 /*****i***********************************************************************
19 AROS_LH1(void, FreeICData
,
22 AROS_LHA(struct ICData
*, icdata
, A0
),
25 struct IntuitionBase
*, IntuitionBase
, 146, Intuition
)
28 This private function will free the data that belongs to an object
29 of the type ICCLASS. It is primarily in as a private function for
30 the benefit of intuition.library's gadgetclass implementation,
31 which includes an icclass of its own.
34 icdata - The address of a struct ICData
37 The data associated will have been freed (including the TagList).
49 ******************************************************************************/
53 struct Library
*UtilityBase
= GetPrivIBase(IntuitionBase
)->UtilityBase
;
54 DEBUG_FREEICDATA(dprintf("FreeICData(icdata 0x%lx)\n",icdata
));
58 icdata
->ic_LoopCounter
= 0UL;
60 if(icdata
->ic_CloneTags
)
62 FreeTagItems(icdata
->ic_CloneTags
);
63 icdata
->ic_CloneTags
= NULL
;