[postgis-devel] Re: [geos-devel] Finding the Leak

Mateusz Loskot mateusz at loskot.net
Tue Aug 19 08:53:37 PDT 2008


Martin Davis wrote:
> I don't really feel competent to comment on Mateusz' suggestion of smart 
> pointers.  But in the near term, isn't the simplest solution just to 
> declare that managing the Geometry associated with the PreparedGeometry 
> is the responsibility of the client?  In this case the client is 
> PostGIS, and I think I'm right in saying that there is an obvious, 
> correct place to delete the created geometry - i.e. immediately after 
> the PrepGeom is deleted.
> 
> This avoids copying, and doesn't require any fancy pointer stuff.
> 
> Or am I missing something?

Martin,

I support this idea and AFAIU the problem it should work well.

Best regards,
-- 
Mateusz Loskot, http://mateusz.loskot.net
Charter Member of OSGeo, http://osgeo.org



More information about the postgis-devel mailing list