Skip to content
Permalink
Browse files

Fix leak when splitting geometries

  • Loading branch information
nyalldawson committed Mar 12, 2018
1 parent 31a9254 commit 0d99d310d0b8a0c0c40ef4984c81bb3ca31b3c27
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/core/geometry/qgsgeos.cpp
@@ -896,7 +896,10 @@ QgsGeometryEngine::EngineOperationResult QgsGeos::splitPolygonGeometry( GEOSGeom
}

for ( i = 0; i < testedGeometries.size(); ++i )
{
newGeometries << QgsGeometry( fromGeos( testedGeometries[i] ) );
GEOSGeom_destroy_r( geosinit.ctxt, testedGeometries[i] );
}

return Success;
}

0 comments on commit 0d99d31

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