Fixed #13843 -- Prevented AttributeError during geometry objects deletion

This commit is contained in:
Claude Paroz 2014-09-12 20:45:59 +02:00
parent b011afe6c8
commit 8f334e55be
7 changed files with 7 additions and 7 deletions

View file

@ -127,7 +127,7 @@ class OGRGeometry(GDALBase):
def __del__(self):
"Deletes this Geometry."
if self._ptr:
if self._ptr and capi:
capi.destroy_geom(self._ptr)
# Pickle routines