[geos-commits] r2323 - trunk/source/geom/prep
svn_geos at osgeo.org
svn_geos at osgeo.org
Wed Apr 8 08:55:00 EDT 2009
Author: strk
Date: 2009-04-08 08:55:00 -0400 (Wed, 08 Apr 2009)
New Revision: 2323
Modified:
trunk/source/geom/prep/PreparedPolygonContainsProperly.cpp
Log:
Don't access deleted memory. Fixes issue 147.
Modified: trunk/source/geom/prep/PreparedPolygonContainsProperly.cpp
===================================================================
--- trunk/source/geom/prep/PreparedPolygonContainsProperly.cpp 2009-04-08 10:53:11 UTC (rev 2322)
+++ trunk/source/geom/prep/PreparedPolygonContainsProperly.cpp 2009-04-08 12:55:00 UTC (rev 2323)
@@ -54,8 +54,8 @@
bool segsIntersect = prepPoly->getIntersectionFinder()->intersects( &lineSegStr);
for ( size_t i = 0, ni = lineSegStr.size(); i < ni; i++ ) {
+ delete lineSegStr[ i ]->getCoordinates();
delete lineSegStr[ i ];
- delete lineSegStr[ i ]->getCoordinates();
}
if (segsIntersect)
More information about the geos-commits
mailing list