Free all memory in a free list.
Source position: icon.pas line 231
procedure FreeFreeList( |
FreeList: PFreeList |
); |
FreeList |
|
A Pointer to FreeList struct. Nil is allowed and does nothing. |
This routine frees all memory in a free list, and the free list itself. It is useful for easily getting rid of all memory in a series of structures. There is a free list in a Workbench object, and this contains all the memory associated with that object.
A TFreeList is a list of TMemList structures. See the TMemList and TMemEntry documentation for more information.
If the TFreeList itself is in the free list, it must be in the first TMemList in the TFreeList.
|
Allocate many regions of memory |
|
|
Free many blocks of memory at once |
|
|
Add memory to a free list. |