[geos-commits] r2530 - branches/3.1/source/precision
svn_geos at osgeo.org
svn_geos at osgeo.org
Wed May 27 15:01:10 EDT 2009
Author: pramsey
Date: 2009-05-27 15:01:09 -0400 (Wed, 27 May 2009)
New Revision: 2530
Modified:
branches/3.1/source/precision/SimpleGeometryPrecisionReducer.cpp
Log:
Backport r2368 from trunk.
Modified: branches/3.1/source/precision/SimpleGeometryPrecisionReducer.cpp
===================================================================
--- branches/3.1/source/precision/SimpleGeometryPrecisionReducer.cpp 2009-05-27 19:00:51 UTC (rev 2529)
+++ branches/3.1/source/precision/SimpleGeometryPrecisionReducer.cpp 2009-05-27 19:01:09 UTC (rev 2530)
@@ -89,7 +89,12 @@
if (typeid(*geom)==typeid(LineString)) minLength = 2;
if (typeid(*geom)==typeid(LinearRing)) minLength = 4;
CoordinateSequence *collapsedCoords = reducedCoords;
- if (sgpr->getRemoveCollapsed()) collapsedCoords=NULL;
+ if (sgpr->getRemoveCollapsed())
+ {
+ delete reducedCoords;
+ reducedCoords=0;
+ collapsedCoords=0;
+ }
// return null or orginal length coordinate array
if (noRepeatedCoords->getSize()<minLength) {
delete noRepeatedCoords;
More information about the geos-commits
mailing list