Commit b011afe6 authored by Claude Paroz's avatar Claude Paroz
Browse files

Prevented Attribute error in GDAL objects deletion

parent ce078ef9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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):