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:
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…
x
Reference in New Issue
Block a user