2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
8 #include "icon_intern.h"
10 /*****************************************************************************
13 #include <proto/icon.h>
15 AROS_LH1(void, FreeFreeList
,
18 AROS_LHA(struct FreeList
*, freelist
, A0
),
21 struct Library
*, IconBase
, 9, Icon
)
24 Frees all memory chunks in the freelist (previously inserted into
25 it via AddFreeList()).
28 freelist - pointer to FreeList struct. It is save to use NULL.
44 2006-04-10 Test for NULL pointer added
46 *****************************************************************************/
50 if ( ! freelist
) return;
52 struct MemList
* node
,
55 node
= (struct MemList
*)freelist
->fl_MemList
.lh_Head
;
57 while ( (nextnode
= (struct MemList
*)node
->ml_Node
.ln_Succ
) )
64 FreeMem (freelist
, sizeof(struct FreeList
));