[geos-commits] r2416 - trunk/tests/unit/algorithm
svn_geos at osgeo.org
svn_geos at osgeo.org
Mon Apr 27 15:42:25 EDT 2009
Author: strk
Date: 2009-04-27 15:42:25 -0400 (Mon, 27 Apr 2009)
New Revision: 2416
Modified:
trunk/tests/unit/algorithm/RobustLineIntersectorTest.cpp
Log:
Fix leak in testcase
Modified: trunk/tests/unit/algorithm/RobustLineIntersectorTest.cpp
===================================================================
--- trunk/tests/unit/algorithm/RobustLineIntersectorTest.cpp 2009-04-27 19:38:44 UTC (rev 2415)
+++ trunk/tests/unit/algorithm/RobustLineIntersectorTest.cpp 2009-04-27 19:42:25 UTC (rev 2416)
@@ -243,10 +243,11 @@
cs->add(p1);
cs->add(p2);
- LineString* l = factory.createLineString(cs);
- Point* p = factory.createPoint(q);
- ensure(!l->intersects(p));
- ensure(!CGAlgorithms::isOnLine(q, l->getCoordinatesRO()));
+ GeomPtr l ( factory.createLineString(cs) );
+ GeomPtr p ( factory.createPoint(q) );
+ ensure(!l->intersects(p.get()));
+
+ ensure(!CGAlgorithms::isOnLine(q, cs));
ensure_equals(CGAlgorithms::computeOrientation(p1, p2, q), -1);
}
More information about the geos-commits
mailing list