2 Copyright © 1995-2004, The AROS Development Team. All rights reserved.
6 #include "iffparse_intern.h"
8 /*****************************************************************************
11 #include <proto/iffparse.h>
13 AROS_LH1(void, FreeLocalItem
,
16 AROS_LHA(struct LocalContextItem
*, localItem
, A0
),
19 struct Library
*, IFFParseBase
, 34, IFFParse
)
22 Frees a local context item previously allocated by AllocLocalItem.
23 This functioned should always be calles by custom LCI purge hooks.
26 localItem - pointer to LocalContextItem struct.
41 *****************************************************************************/
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
)
53 GetIntLCI(localItem
)->lci_UserData
,
54 GetIntLCI(localItem
)->lci_UserDataSize
59 /* Free the LCI itself */
60 FreeMem(localItem
, sizeof (struct IntLocalContextItem
));