-- delete the layers associated this Layer_Info structure --
DeleteLayer(li,simple_layer);
DeleteLayer(li,smart_layer);
-- see docs 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);