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 IconBase
*, 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 safe to use NULL.
44 2006-04-10 Test for NULL pointer added
46 *****************************************************************************/
50 if ( ! freelist
) return;
52 while (!IsListEmpty(&freelist
->fl_MemList
))
54 struct MemList
*node
= (struct MemList
*)freelist
->fl_MemList
.lh_Head
;
55 Remove ((struct Node
*)node
);