[gdal-dev] modified TSX driver

Shawn GONG SGONG at mdacorporation.com
Tue Jun 1 21:12:54 EDT 2010


Hi Frank and list,

I reopened Ticket #3564 to submit a modified TSX driver. Changes made by Adam Klein in:
• Open() will return NULL when one of the raster bands cannot be loaded.  This fix prevents a crash (dereferencing NULL pointer). 
• The driver no longer saves the image file pointer (it was never being used anyway) and does not clear the file pointer passed to Open() through GDALOpenInfo.  This fix allows GDAL to close the image file when it is done with it. 
• Replace strdup() with CPLStrdup() for consistency 
• Calling CPLDestroyXMLNode() to clean up before returning NULL in Open() 


Thanks,
Shawn
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20100601/5a9301ff/attachment.html


More information about the gdal-dev mailing list