aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/gz-common/gdal-3.11.diff
blob: 227dd208fa6a8c2172aac90dac9213aa91955731 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff --git a/geospatial/src/Dem.cc b/geospatial/src/Dem.cc
index 88d541d..74eb78c 100644
--- a/geospatial/src/Dem.cc
+++ b/geospatial/src/Dem.cc
@@ -389,7 +389,6 @@ bool Dem::GeoReference(double _x, double _y,
     {
       gzerr << "Unable to transform terrain coordinate system for "
              << "coordinates (" << _x << "," << _y << ")" << std::endl;
-      OCTDestroyCoordinateTransformation(cT);
       return false;
     }
 
@@ -401,7 +400,7 @@ bool Dem::GeoReference(double _x, double _y,
     _latitude.SetDegree(yGeoDeg);
     _longitude.SetDegree(xGeoDeg);
 
-    OCTDestroyCoordinateTransformation(cT);
+    delete cT;
   }
   else
   {