mirror of https://github.com/microsoft/vcpkg.git
22 lines
653 B
Diff
22 lines
653 B
Diff
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
|
|
{
|