[geos-devel] using CoordinateOperation::edit cause memory leaks
tfiedlerova at gmail.com
Wed May 22 12:55:59 PDT 2013
I understand it now. My problem is solved. Thank you for your help and patience.
2013/5/22 Sandro Santilli <strk at keybit.net>:
> On Wed, May 22, 2013 at 09:23:04PM +0200, Tereza Fiedlerová wrote:
>> > I get NO leaks reported by Valgrind with this code:
>> > http://strk.keybit.net/tmp/main.cpp
>> > --strk;
>> I cannot open your link (403 Forbidden), but with my code posted
>> before just with line delete geosGeom in the end of main.cpp, I still
>> get that one leak. Could it be caused by my GEOS version? I'm using
>> Geos 3.3.3?
> Please try again.
> You're assigning to geosGeom the return from the function, making
> the previous value of geosGeom unreachable, thus leaking.
> geos-devel mailing list
> geos-devel at lists.osgeo.org
More information about the geos-devel