[geos-commits] r2198 - trunk/source/geom/prep
svn_geos at osgeo.org
svn_geos at osgeo.org
Fri Oct 10 13:46:34 EDT 2008
Author: pramsey
Date: 2008-10-10 13:46:34 -0400 (Fri, 10 Oct 2008)
New Revision: 2198
Modified:
trunk/source/geom/prep/PreparedPolygonContainsProperly.cpp
Log:
One last memory leak fix.
Modified: trunk/source/geom/prep/PreparedPolygonContainsProperly.cpp
===================================================================
--- trunk/source/geom/prep/PreparedPolygonContainsProperly.cpp 2008-10-09 16:39:07 UTC (rev 2197)
+++ trunk/source/geom/prep/PreparedPolygonContainsProperly.cpp 2008-10-10 17:46:34 UTC (rev 2198)
@@ -53,8 +53,10 @@
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 ];
+ delete lineSegStr[ i ]->getCoordinates();
+ }
if (segsIntersect)
return false;
More information about the geos-commits
mailing list