Prevented Attribute error in GDAL objects deletion

This commit is contained in:
Claude Paroz 2014-09-12 20:31:22 +02:00
parent ce078ef976
commit b011afe6c8
1 changed files with 1 additions and 1 deletions

View File

@ -342,7 +342,7 @@ class CoordTransform(GDALBase):
def __del__(self):
"Deletes this Coordinate Transformation object."
if self._ptr:
if self._ptr and capi:
capi.destroy_ct(self._ptr)
def __str__(self):