mirror of https://github.com/django/django.git
Prevented Attribute error in GDAL objects deletion
This commit is contained in:
parent
ce078ef976
commit
b011afe6c8
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue