[Gdal-dev] Memory leak fix for ogrdgnlayer.cpp
Steve Brooks
sbrooks2 at kc.rr.com
Sun Sep 28 12:59:46 EDT 2003
Frank,
Below is a memory leak fix for ogrdgnlayer.cpp, when converting
complex linestrings from the dgn the child DGNElement (psChildElement)
wasn't being freed after conversion to the poChildFeature.
Steve Brooks
$ diff clean/ogrdgnlayer.cpp modified/ogrdgnlayer.cpp
587c587,590
< poChildFeature = ElementToFeature( psChildElement );
---
> {
> poChildFeature = ElementToFeature( psChildElement );
> DGNFreeElement( hDGN, psChildElement );
> }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20030928/57a3be71/attachment.html
More information about the Gdal-dev
mailing list