1
0
mirror of https://github.com/django/django.git synced 2025-03-01 12:24:31 +00:00

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

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):