[][src]Function spatialite_sys::gaiaFreePolygon

pub unsafe extern "C" fn gaiaFreePolygon(polyg: gaiaPolygonPtr)

Destroys a POLYGON object

\param polyg pointer to the POLYGON object to be destroyed

\sa gaiaAllocPolygon, gaiaAllocPolygonXYZ, gaiaAllocPolygonXYM, gaiaAllocPolygonXYZM, gaiaCreatePolygon

\note attempting to destroy any POLYGON 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 RING object referenced by a POLYGON object always belongs to the POLYGON itself, so destroying the POLYGON will surely destroy any related RING as well.