Return all memory for LayerInfo to memory pool
Source position: layers.pas line 114
procedure DisposeLayerInfo( |
Li: PLayer_Info |
); |
Li |
|
pointer to LayerInfo structure |
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);
|
delete layer from layer list. |