[geos-commits] r2197 - trunk/source/geom/prep
svn_geos at osgeo.org
svn_geos at osgeo.org
Thu Oct 9 12:39:07 EDT 2008
Author: pramsey
Date: 2008-10-09 12:39:07 -0400 (Thu, 09 Oct 2008)
New Revision: 2197
Modified:
trunk/source/geom/prep/PreparedPolygonIntersects.cpp
Log:
Memory leak fix for for prepared intersects. (#207)
Modified: trunk/source/geom/prep/PreparedPolygonIntersects.cpp
===================================================================
--- trunk/source/geom/prep/PreparedPolygonIntersects.cpp 2008-10-04 18:14:09 UTC (rev 2196)
+++ trunk/source/geom/prep/PreparedPolygonIntersects.cpp 2008-10-09 16:39:07 UTC (rev 2197)
@@ -53,8 +53,11 @@
noding::SegmentStringUtil::extractSegmentStrings( geom, lineSegStr );
bool segsIntersect = prepPoly->getIntersectionFinder()->intersects( &lineSegStr);
- for ( size_t i = 0, ni = lineSegStr.size(); i < ni; i++ )
+ for ( size_t i = 0, ni = lineSegStr.size(); i < ni; i++ )
+ {
+ delete lineSegStr[ i ]->getCoordinates();
delete lineSegStr[ i ];
+ }
if (segsIntersect)
return true;
More information about the geos-commits
mailing list