2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
3 Copyright © 2001-2003, The MorphOS Development Team. All Rights Reserved.
7 #include "intuition_intern.h"
8 #include <exec/memory.h>
9 #include <proto/exec.h>
11 /*****************************************************************************
14 #include <intuition/intuition.h>
15 #include <proto/intuition.h>
17 AROS_LH2(void, FreeRemember
,
20 AROS_LHA(struct Remember
**, rememberKey
, A0
),
21 AROS_LHA(LONG
, reallyForget
, D0
),
24 struct IntuitionBase
*, IntuitionBase
, 68, Intuition
)
27 Free memory allocated by AllocRemember().
30 rememberKey - address of a pointer to struct Remember
31 reallyForget - TRUE release all memory
32 FALSE release only link nodes
48 27-11-96 digulla automatically created from
49 intuition_lib.fd and clib/intuition_protos.h
51 *****************************************************************************/
55 struct Remember
*next
, *key
;
57 DEBUG_REMEMBER(dprintf("FreeRemember: Key 0x%lx ReallyForget %d\n",
58 rememberKey
, reallyForget
));
60 for (next
= *rememberKey
; (key
= next
); )
62 next
= key
->NextRemember
;
65 FreeMem (key
->Memory
, key
->RememberSize
);
67 FreeMem (key
, sizeof (struct Remember
));