[Gdal-dev] memory leak in MapInfo layer

Richard Matsunaga richard.matsunaga at waypointinfo.com
Tue Jun 13 15:35:04 EDT 2006


I believe I am experiencing a memory leak in MapInfo tab layers using the C
API (called by C# code).
 
I am writing points to a MapInfo tab file. If I don't add the point object
to the OgrFeature, there is no leak. As soon as I add the point (or any
geometry), the memory leak occurs.
 
If I choose a Shapefile datasource, there is no leak.
 
I took a quick look at the mitab source, but saw nothing obvious.
 
Could there be something I am doing wrong that is leading to this problem
with MapInfo files?
 
Another test that I did to confirm was to use 'OGR_F_SetGeometry' instead of
'OGR_F_SetGeometryDirectly' (and destroy the original geometry myself) and
the same leak occurs.
 
Cheers,
Richard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20060613/c90e831e/attachment.html


More information about the Gdal-dev mailing list