2 Copyright © 1995-2013, 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
47 *****************************************************************************/
51 struct Remember
*next
, *key
;
53 DEBUG_REMEMBER(dprintf("FreeRemember: Key 0x%lx ReallyForget %d\n",
54 rememberKey
, reallyForget
));
56 for (next
= *rememberKey
; (key
= next
); )
58 next
= key
->NextRemember
;
61 FreeMem (key
->Memory
, key
->RememberSize
);
63 FreeMem (key
, sizeof (struct Remember
));