[geos-commits] r2812 - trunk/source/headers/geos/geom/prep
svn_geos at osgeo.org
svn_geos at osgeo.org
Tue Dec 8 12:42:59 EST 2009
Author: strk
Date: 2009-12-08 12:42:59 -0500 (Tue, 08 Dec 2009)
New Revision: 2812
Modified:
trunk/source/headers/geos/geom/prep/PreparedLineStringIntersects.h
Log:
Drop useless (and leaking) heap allocation exposed by the new prepared linestring intersection test
Modified: trunk/source/headers/geos/geom/prep/PreparedLineStringIntersects.h
===================================================================
--- trunk/source/headers/geos/geom/prep/PreparedLineStringIntersects.h 2009-12-08 17:42:02 UTC (rev 2811)
+++ trunk/source/headers/geos/geom/prep/PreparedLineStringIntersects.h 2009-12-08 17:42:59 UTC (rev 2812)
@@ -59,8 +59,8 @@
*/
static bool intersects( PreparedLineString & prep, const geom::Geometry * geom )
{
- PreparedLineStringIntersects * op = new PreparedLineStringIntersects( prep);
- return op->intersects( geom);
+ PreparedLineStringIntersects op( prep);
+ return op.intersects( geom);
}
/**
More information about the geos-commits
mailing list