Skip to content

Commit

Permalink
Clean reshape
Browse files Browse the repository at this point in the history
  • Loading branch information
pblottiere committed Oct 16, 2017
1 parent 16c8c3e commit 2fb7b12
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/core/geometry/qgsgeometry.cpp
Expand Up @@ -821,13 +821,14 @@ int QgsGeometry::reshapeGeometry( const QList<QgsPointV2>& reshapeLine )

if ( errorCode == 0 && geom )
{
detach( true );
delete d->geometry;
detach( false );
removeWkbGeos();
d->geometry = geom;
return 0;
}

delete geom;

return errorCode;
}

Expand Down

0 comments on commit 2fb7b12

Please sign in to comment.