Skip to content

Commit 0d99d31

Browse files
committed
Fix leak when splitting geometries
1 parent 31a9254 commit 0d99d31

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/core/geometry/qgsgeos.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -896,7 +896,10 @@ QgsGeometryEngine::EngineOperationResult QgsGeos::splitPolygonGeometry( GEOSGeom
896896
}
897897

898898
for ( i = 0; i < testedGeometries.size(); ++i )
899+
{
899900
newGeometries << QgsGeometry( fromGeos( testedGeometries[i] ) );
901+
GEOSGeom_destroy_r( geosinit.ctxt, testedGeometries[i] );
902+
}
900903

901904
return Success;
902905
}

0 commit comments

Comments
 (0)