2 Copyright © 1995-2013, 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***********************************************************************
18 AROS_LH1(void, FreeICData
,
21 AROS_LHA(struct ICData
*, icdata
, A0
),
24 struct IntuitionBase
*, IntuitionBase
, 146, Intuition
)
27 This private function will free the data that belongs to an object
28 of the type ICCLASS. It is primarily in as a private function for
29 the benefit of intuition.library's gadgetclass implementation,
30 which includes an icclass of its own.
33 icdata - The address of a struct ICData
36 The data associated will have been freed (including the TagList).
39 This function is also present in MorphOS v50, however
50 ******************************************************************************/
54 struct Library
*UtilityBase
= GetPrivIBase(IntuitionBase
)->UtilityBase
;
55 DEBUG_FREEICDATA(dprintf("FreeICData(icdata 0x%lx)\n",icdata
));
59 icdata
->ic_LoopCounter
= 0UL;
61 if(icdata
->ic_CloneTags
)
63 FreeTagItems(icdata
->ic_CloneTags
);
64 icdata
->ic_CloneTags
= NULL
;