[geos-devel] RE: memory leaks in Bigtest
Stefan Zschocke
s.zschocke at infozoom.de
Wed Feb 22 12:14:44 EST 2006
Hi, should I post the fixed 2 files of bigtest as attachemt to the
group?
Stefan
-----Original Message-----
From: geos-devel-bounces at geos.refractions.net
[mailto:geos-devel-bounces at geos.refractions.net] On Behalf Of
strk at refractions.net
Sent: Wednesday, February 22, 2006 5:51 PM
To: geos-devel at geos.refractions.net
Subject: Re: [geos-devel] RE: memory leaks in Bigtest
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;
_______________________________________________
geos-devel mailing list
geos-devel at geos.refractions.net
http://geos.refractions.net/mailman/listinfo/geos-devel
More information about the geos-devel
mailing list