v0.2.49..v0.2.50 changeset BuildingOutlineUpdateOp.cpp
Garret Voltz edited this page Nov 6, 2019
·
1 revision
diff --git a/hoot-core/src/main/cpp/hoot/core/ops/BuildingOutlineUpdateOp.cpp b/hoot-core/src/main/cpp/hoot/core/ops/BuildingOutlineUpdateOp.cpp
index ddd294f..8b3d759 100644
--- a/hoot-core/src/main/cpp/hoot/core/ops/BuildingOutlineUpdateOp.cpp
+++ b/hoot-core/src/main/cpp/hoot/core/ops/BuildingOutlineUpdateOp.cpp
@@ -180,10 +180,10 @@ void BuildingOutlineUpdateOp::_unionOutline(const RelationPtr& pBuilding,
catch (const geos::util::TopologyException& e)
{
LOG_TRACE("Attempting to clean way geometry after union error: " << e.what());
- Geometry* cleanedGeom = GeometryUtils::validateGeometry(pGeometry.get());
+ std::shared_ptr<Geometry> cleanedGeom(GeometryUtils::validateGeometry(pGeometry.get()));
try
{
- pOutline.reset(pOutline->Union(cleanedGeom));
+ pOutline.reset(pOutline->Union(cleanedGeom.get()));
LOG_VART(pOutline->getGeometryTypeId());
}
catch (const geos::util::TopologyException& e)