[geos-commits] r2529 - branches/3.0/source/precision

svn_geos at osgeo.org svn_geos at osgeo.org
Wed May 27 15:00:52 EDT 2009


Author: pramsey
Date: 2009-05-27 15:00:51 -0400 (Wed, 27 May 2009)
New Revision: 2529

Modified:
   branches/3.0/source/precision/SimpleGeometryPrecisionReducer.cpp
Log:
Backport r2368 from trunk.


Modified: branches/3.0/source/precision/SimpleGeometryPrecisionReducer.cpp
===================================================================
--- branches/3.0/source/precision/SimpleGeometryPrecisionReducer.cpp	2009-05-27 18:57:04 UTC (rev 2528)
+++ branches/3.0/source/precision/SimpleGeometryPrecisionReducer.cpp	2009-05-27 19:00:51 UTC (rev 2529)
@@ -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