Skip to content

Commit dbf64a4

Browse files
committedMar 15, 2018
Fix leak when splitting geometries
(cherry-picked from 0d99d31)
1 parent cc69e37 commit dbf64a4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎src/core/geometry/qgsgeos.cpp

Lines changed: 3 additions & 0 deletions
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)
Please sign in to comment.