logo       

Re: Memory leak fix for ogrdgnlayer.cpp: msg#00165

gis.gdal.devel

Subject: Re: Memory leak fix for ogrdgnlayer.cpp

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@xxxxxxxxx
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | Geospatial Programmer for Rent


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise