We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent 90bd24a commit 3803979Copy full SHA for 3803979
src/core/qgsgeometry.cpp
@@ -4661,7 +4661,8 @@ GEOSGeometry* QgsGeometry::linePointDifference( GEOSGeometry* GEOSsplitPoint )
4661
else
4662
return 0;
4663
4664
- QgsGeometry* geosPoint = fromGeosGeom( GEOSsplitPoint );
+ // GEOSsplitPoint will be deleted in the caller, so make a clone
4665
+ QgsGeometry* geosPoint = fromGeosGeom( GEOSGeom_clone_r( geosinit.ctxt, GEOSsplitPoint ) );
4666
QgsPoint splitPoint = geosPoint->asPoint();
4667
delete geosPoint;
4668
@@ -4746,9 +4747,7 @@ int QgsGeometry::splitLinearGeometry( GEOSGeometry *splitLine, QList<QgsGeometry
4746
4747
4748
if ( lineGeoms.size() > 0 )
4749
{
- GEOSGeom_destroy_r( geosinit.ctxt, mGeos );
4750
- mGeos = lineGeoms[0];
4751
- mDirtyWkb = true;
+ fromGeos( lineGeoms[0] );
4752
}
4753
4754
for ( int i = 1; i < lineGeoms.size(); ++i )
0 commit comments