[gdal-dev] Deleting GDALColorTable *

2012-11-26 Thread David Strip
If I do something like this: GDALColorTable * ct = raster_band-GetColorTable()-clone(); ... bunch of stuff delete ct; Will the destructor be called on the color table represented pointed to by ct, or do I have to call GDALDestroyColorTable((GDALColorTableH) ct)

Re: [gdal-dev] Deleting GDALColorTable *

2012-11-26 Thread Even Rouault
Le lundi 26 novembre 2012 20:51:53, David Strip a écrit : If I do something like this: GDALColorTable * ct = raster_band-GetColorTable()-clone(); ... bunch of stuff delete ct; Will the destructor be called on the color table represented pointed to by ct, or do I have to call