RFC 40: compilation fix for GeoRaster (and also fix an existing bug that would cause memory leaks in case of successive calls to GetDefaultRAT() )

git-svn-id: https://svn.osgeo.org/gdal/trunk/gdal@26119 f0d54148-0727-0410-94bb-9a71ac55c965