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, 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 struct IntContextNode
* cn
;
43 struct LocalContextItem
* node
,
49 We should free the LCIs of the default context-node
50 ( CollectionItems and such )
52 cn
= (struct IntContextNode
*)RootChunk (iff
);
54 node
= (struct LocalContextItem
*)cn
->cn_LCIList
.mlh_Head
;
56 while ((nextnode
= (struct LocalContextItem
*)node
->lci_Node
.mln_Succ
))
58 PurgeLCI (node
, IPB(IFFParseBase
));
63 FreeMem (iff
, sizeof (struct IntIFFHandle
));