Skip to content
Permalink
Browse files

Fix leak when splitting geometries

(cherry-picked from 0d99d31)
  • Loading branch information
nyalldawson committed Mar 12, 2018
1 parent cc69e37 commit dbf64a47ca632aedde7abeb1c9ebb5ce311ffebc
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 dbf64a4

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