Re: [gdal-dev] Regarding to the memory management in the SWIG API

2014-01-08 Thread Ari Jolma
On 01/08/2014 12:27 PM, Even Rouault wrote: Le mercredi 08 janvier 2014 11:10:58, Tamas Szekeres a écrit : Hi Devs, Is that intentional that we don't call ReleaseResultset within the destructor of the OGR Layer object? The OGR Layer object has generally no pointer to the datasource from which

Re: [gdal-dev] Regarding to the memory management in the SWIG API

2014-01-08 Thread Even Rouault
Le mercredi 08 janvier 2014 11:10:58, Tamas Szekeres a écrit : > Hi Devs, > > Is that intentional that we don't call ReleaseResultset within the > destructor of the OGR Layer object? The OGR Layer object has generally no pointer to the datasource from which it originates (well, at the swig level

[gdal-dev] Regarding to the memory management in the SWIG API

2014-01-08 Thread Tamas Szekeres
Hi Devs, Is that intentional that we don't call ReleaseResultset within the destructor of the OGR Layer object? Actually the destructor is not even generated (at least for the C# API) which seems to be an improper solution and leads to memory leaks, definitely. However ReleaseResultset is exposed