Unit 'icon' Package
[Overview][Constants][Types][Procedures and functions][Variables][Index] [#morphunits]

FreeFreeList

Free all memory in a free list.

Declaration

Source position: icon.pas line 356

procedure FreeFreeList(

  freelist: PFreeList

);

Arguments

freelist

  

A Pointer to FreeList struct. Nil is allowed and does nothing.

Description

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.

See also

AllocEntry

  

Allocate many regions of memory

FreeEntry

  

Free many blocks of memory at once

AddFreeList

  

Add memory to a free list.


Documentation generated on: 2021-07-30