Skip to content
Permalink
Browse files

Fix memory leak

  • Loading branch information
nyalldawson committed Jan 19, 2018
1 parent d424222 commit c6608c086c937099bdd965539f033dd5c99a8bf6
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/geometry/qgsinternalgeometryengine.cpp
@@ -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
{

0 comments on commit c6608c0

Please sign in to comment.
You can’t perform that action at this time.