[geos-commits] r3837 - trunk/tests/unit/capi

svn_geos at osgeo.org svn_geos at osgeo.org
Thu Jul 11 08:58:32 PDT 2013


Author: strk
Date: 2013-07-11 08:58:32 -0700 (Thu, 11 Jul 2013)
New Revision: 3837

Modified:
   trunk/tests/unit/capi/GEOSOffsetCurveTest.cpp
Log:
Fix memory leak in testcase

Modified: trunk/tests/unit/capi/GEOSOffsetCurveTest.cpp
===================================================================
--- trunk/tests/unit/capi/GEOSOffsetCurveTest.cpp	2013-07-11 15:54:20 UTC (rev 3836)
+++ trunk/tests/unit/capi/GEOSOffsetCurveTest.cpp	2013-07-11 15:58:32 UTC (rev 3837)
@@ -213,6 +213,8 @@
             // likely, 5 >= 5
             ensure(GEOSGeomGetNumPoints(geom2_) >= GEOSGeomGetNumPoints(geom1_));
             wkt_ = GEOSWKTWriter_write(wktw_, geom2_);
+            GEOSGeom_destroy(geom2_);
+            GEOSFree(wkt_);
             //ensure_equals(std::string(wkt_), ...);
         }
 



More information about the geos-commits mailing list