[geos-devel] RE: memory leaks in Bigtest
strk at refractions.net
strk at refractions.net
Wed Feb 22 11:51:00 EST 2006
On Wed, Feb 22, 2006 at 05:16:09PM +0100, Stefan Zschocke wrote:
> Update: I changed all the *new Coordinate() calls in the
> GeometryTestFactory to Coordinate(..)
> and now the leaks are significantly reduced to 10 allocations. These 10
> allocations however result from just calling
> GeometryFactory fact;
> in the main-function. Even if all of the run-calls are commented out,
> the leak of 10 objects remains.
> Stefan
I guess the GeoemtryFactory default ctor constructs a PrecisionModel.
I'd remove the default constructor or provide a default PrecisionModel
as a singleton. For a quick fix try:
PrecisionModel pm;
GeometryFactory fact(&pm);
--strk;
More information about the geos-devel
mailing list