2 Copyright © 1995-2007, 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 *****************************************************************************/
45 if (localItem
!= NULL
)
47 /* If the LCI has supplied userdata, then free it */
48 if ( GetIntLCI(localItem
)->lci_UserData
)
52 GetIntLCI(localItem
)->lci_UserData
,
53 GetIntLCI(localItem
)->lci_UserDataSize
58 /* Free the LCI itself */
59 FreeMem(localItem
, sizeof (struct IntLocalContextItem
));