New bitmap method SetRGBConversionFunction which can be used to
[tangerine.git] / workbench / libs / iffparse / freelocalitem.c
blob370c318ef59c383cbe2db69dd0eae67802306297
1 /*
2 Copyright © 1995-2004, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #include "iffparse_intern.h"
8 /*****************************************************************************
10 NAME */
11 #include <proto/iffparse.h>
13 AROS_LH1(void, FreeLocalItem,
15 /* SYNOPSIS */
16 AROS_LHA(struct LocalContextItem *, localItem, A0),
18 /* LOCATION */
19 struct Library *, IFFParseBase, 34, IFFParse)
21 /* FUNCTION
22 Frees a local context item previously allocated by AllocLocalItem.
23 This functioned should always be calles by custom LCI purge hooks.
25 INPUTS
26 localItem - pointer to LocalContextItem struct.
28 RESULT
30 NOTES
32 EXAMPLE
34 BUGS
36 SEE ALSO
37 AllocLocalItem()
39 INTERNALS
41 *****************************************************************************/
43 AROS_LIBFUNC_INIT
44 AROS_LIBBASE_EXT_DECL(struct Library *,IFFParseBase)
46 if (localItem != NULL)
48 /* If the LCI has supplied userdata, then free it */
49 if ( GetIntLCI(localItem)->lci_UserData )
51 FreeMem
53 GetIntLCI(localItem)->lci_UserData,
54 GetIntLCI(localItem)->lci_UserDataSize
59 /* Free the LCI itself */
60 FreeMem(localItem, sizeof (struct IntLocalContextItem));
63 AROS_LIBFUNC_EXIT
64 } /* FreeLocalItem */