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, FreeIFF
,
16 AROS_LHA(struct IFFHandle
*, iff
, A0
),
19 struct Library
*, IFFParseBase
, 9, IFFParse
)
22 Frees an IFFHandle struct previously allocated by AllocIFF.
25 iff - pointer to an IFFHandle struct.
35 AllocIFF(), CloseIFF()
39 *****************************************************************************/
42 AROS_LIBBASE_EXT_DECL(struct Library
*,IFFParseBase
)
43 struct IntContextNode
* cn
;
44 struct LocalContextItem
* node
,
50 We should free the LCIs of the default context-node
51 ( CollectionItems and such )
53 cn
= (struct IntContextNode
*)RootChunk (iff
);
55 node
= (struct LocalContextItem
*)cn
->cn_LCIList
.mlh_Head
;
57 while ((nextnode
= (struct LocalContextItem
*)node
->lci_Node
.mln_Succ
))
59 PurgeLCI (node
, IPB(IFFParseBase
));
64 FreeMem (iff
, sizeof (struct IntIFFHandle
));