<div dir="ltr">Hi Devs,<div><br></div><div>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 in the API, but it's fairly dangerous to let the user decide whether to call this method or not.</div>
<div><br></div><div>In my understanding the destructor of the Layer object should look something like the destructor of the DataSource (but calling ReleaseResultset instead of ReleaseDatasource). However modifying the code this way, may lead to a crash for the existing code which call ReleaseResultset directly.</div>
<div><br></div><div>Any opinion?</div><div><br></div><div>Best regards,</div><div><br></div><div>Tamas</div><div><br></div></div>