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

@ -97,7 +97,7 @@ class SpatialReference(GDALBase):
def __del__(self):
"Destroys this spatial reference."
if self._ptr:
if self._ptr and capi:
capi.release_srs(self._ptr)
def __getitem__(self, target):