2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
8 #include <proto/arossupport.h>
9 #include "icon_intern.h"
12 extern const IPTR IconDesc
[];
14 /*****************************************************************************
17 #include <clib/icon_protos.h>
19 AROS_LH1(void, FreeDiskObject
,
22 AROS_LHA(struct DiskObject
*, diskobj
, A0
),
25 struct Library
*, IconBase
, 15, Icon
)
28 Frees all memory for a DiskObject structure.
31 diskobj -- a pointer to a DiskObject structure. A NULL pointer will be
48 2006-04-09 Test for NULL pointer added
50 *****************************************************************************/
54 if ( ! diskobj
) return;
56 struct NativeIcon
*nativeicon
;
58 nativeicon
= NATIVEICON(diskobj
);
60 RemoveIconFromList(nativeicon
, LB(IconBase
));
62 /* It's enough to free our pool */
63 DeletePool(nativeicon
->pool
);
67 } /* FreeDiskObject */