[][src]Function spatialite_sys::gaiaFreeGeomColl

pub unsafe extern "C" fn gaiaFreeGeomColl(geom: gaiaGeomCollPtr)

Destroys a Geometry object

\param geom pointer to the Geometry object to be destroyed

\sa gaiaAllocGeomColl, gaiaAllocGeomCollXYZ, gaiaAllocGeomCollXYM, gaiaAllocGeomCollXYZM

\note attempting to destroy any Geometry object whose ownership has already been transferred to some other (higher order) object is a serious error, and will easily cause severe memory corruption. \n Ownership of each POINT, LINESTRING or POLYGON object referenced by a Geometry object always belongs to the Geometry itself, so destroying the Geometry will surely destroy any related elementary geometry item as well.