Unit 'layers' Package
[Overview][Constants][Types][Procedures and functions][Variables][Index] [#aros]

DisposeLayerInfo

Return all memory for LayerInfo to memory pool

Declaration

Source position: layers.pas line 119

procedure DisposeLayerInfo(

  LayerInfo: PLayer_Info

);

Description

return LayerInfo and any other memory attached to this LayerInfo to memory allocator.

Attention

if you wish to delete the layers associated with this TLayer_Info structure, remember to call DeleteLayer() for each of the layers before calling DisposeLayerInfo().

Snippet

// delete the layers associated this Layer_Info structure --
DeleteLayer(li, Simple_Layer);
DeleteLayer(li, Smart_Layer);

// see documentation on DeleteLayer about deleting SuperBitMap layers --
My_Super_Bitmap_Ptr := Super_Layer^.SuperBitMap;
DeleteLayer(li, Super_Layer);

// now dispose of the Layer_Info structure itself --
DisposeLayerInfo(li);

See also

DeleteLayer

  

delete layer from layer list.


Documentation generated on: 2021-07-30