[Gdal-dev] missing function to destroy properly OGRStyleTool ?

Frank Warmerdam warmerdam at pobox.com
Thu Dec 1 14:44:09 EST 2005


On 11/28/05, Fabien Dachicourt <support at geoimage.fr> wrote:
> I know that many problems appear when the "new" is done inside gdal/ogr
> library, whereas the "delete" is done outside (the best example is
> OGRGeometry for which we have to use OGRGeometryFactory to create and
> destroy geometries).
>
> My question is : how can i delete properly these OGRStyleTools ?

Fabien,

Good question.  The answer is that doing the delete
yourself is ok if you are using the same heap as the GDAL DLL.
This is always the case on Unix/Linux.

If not, they need to be deleted in the GDAL DLL,
but no appropriate destroy method has been provided.

I would appreciate your filing a bug report on this issue.

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