[Gdal-dev] Memory leak fix for ogrdgnlayer.cpp
Frank Warmerdam
warmerdam at pobox.com
Mon Sep 29 10:26:03 EDT 2003
Steve Brooks wrote:
> 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 );
> > }
Steve,
I see your point. Patch applied in CVS.
Thanks,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | Geospatial Programmer for Rent
More information about the Gdal-dev
mailing list