Skip to content

Commit

Permalink
Fix memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jan 19, 2018
1 parent d424222 commit c6608c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/geometry/qgsinternalgeometryengine.cpp
Expand Up @@ -619,7 +619,7 @@ QgsAbstractGeometry *densifyGeometry( const QgsAbstractGeometry *geom, int extra

if ( QgsWkbTypes::geometryType( geom->wkbType() ) == QgsWkbTypes::LineGeometry )
{
return doDensify( static_cast< QgsLineString * >( geom->clone() ), extraNodesPerSegment, distance );
return doDensify( static_cast< const QgsLineString * >( geom ), extraNodesPerSegment, distance );
}
else
{
Expand Down

0 comments on commit c6608c0

Please sign in to comment.