[Gdal-dev] ogr2ogr little patch delete feature

Frank Warmerdam fwarmerdam at gmail.com
Thu Apr 14 10:18:11 EDT 2005


On 4/14/05, Julien Demaria <dem at acri-st.fr> wrote:
> Is OGRFeature::DestroyFeature better than delete feature ?

Julien, 

I have applied a variation on your patch.  Yes, DestroyFeature()
is safer in the context of ogr2ogr, because it still works if the
GDAL DLL has a different heap (on win32) than the mainline
since it deferred the delete operation to the GDAL DLL itself. 

Best regards,
-- 
---------------------------------------+--------------------------------------
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