def __del__(self):
        "Deletes this Geometry."
        try:
            capi.destroy_geom(self._ptr)
        except (AttributeError, __HOLE__):
            pass  # Some part might already have been garbage collected

    # Pickle routines
dataset/ETHPy150Open django/django/django/contrib/gis/gdal/geometries.py/OGRGeometry.__del__