Register nameservers dynamically instead of writing them to disk. It is
[AROS.git] / rom / intuition / freeicdata.c
blob31f8ed8217cd45a4a96b4f10955a8f5349f7a379
1 /*
2 Copyright © 1995-2011, The AROS Development Team. All rights reserved.
3 Copyright © 2001-2003, The MorphOS Development Team. All Rights Reserved.
4 $Id$
6 Support function for icclass and gadgetclass.
7 */
9 #include <exec/types.h>
10 #include <proto/exec.h>
11 #include <proto/utility.h>
13 #include "intuition_intern.h"
15 /*****i***********************************************************************
17 NAME */
19 AROS_LH1(void, FreeICData,
21 /* SYNOPSIS */
22 AROS_LHA(struct ICData *, icdata, A0),
24 /* LOCATION */
25 struct IntuitionBase *, IntuitionBase, 146, Intuition)
27 /* FUNCTION
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.
33 INPUTS
34 icdata - The address of a struct ICData
36 RESULT
37 The data associated will have been freed (including the TagList).
39 NOTES
41 EXAMPLE
43 BUGS
45 SEE ALSO
47 INTERNALS
49 ******************************************************************************/
51 AROS_LIBFUNC_INIT
53 struct Library *UtilityBase = GetPrivIBase(IntuitionBase)->UtilityBase;
54 DEBUG_FREEICDATA(dprintf("FreeICData(icdata 0x%lx)\n",icdata));
56 SANITY_CHECK(icdata)
58 icdata->ic_LoopCounter = 0UL;
60 if(icdata->ic_CloneTags)
62 FreeTagItems(icdata->ic_CloneTags);
63 icdata->ic_CloneTags = NULL;
66 AROS_LIBFUNC_EXIT
68 } /* FreeICData() */