[fdo-commits] r97 - branches/3.2.x/Providers/GDAL/Src/Provider

svn_fdo at osgeo.org svn_fdo at osgeo.org
Thu Feb 22 21:45:58 EST 2007


Author: warmerdam
Date: 2007-02-22 21:45:58 -0500 (Thu, 22 Feb 2007)
New Revision: 97

Modified:
   branches/3.2.x/Providers/GDAL/Src/Provider/FdoRfpRasterPropertyDictionary.cpp
Log:
fixed image reference leak in GetProperty() (ticket #16)

Modified: branches/3.2.x/Providers/GDAL/Src/Provider/FdoRfpRasterPropertyDictionary.cpp
===================================================================
--- branches/3.2.x/Providers/GDAL/Src/Provider/FdoRfpRasterPropertyDictionary.cpp	2007-02-22 20:54:41 UTC (rev 96)
+++ branches/3.2.x/Providers/GDAL/Src/Provider/FdoRfpRasterPropertyDictionary.cpp	2007-02-23 02:45:58 UTC (rev 97)
@@ -96,7 +96,7 @@
         throw FdoException::Create(FdoException::NLSGetMessage(FDO_2_BADPARAMETER, "Bad parameter to method."));
 
     FdoDataValue* rv;
-    FdoRfpImage *image = m_raster->GetImage();
+    FdoPtr<FdoRfpImage> image = m_raster->GetImage();
     GDALColorTableH hCT = GDALGetRasterColorTable( GDALGetRasterBand( image->GetDS(), image->m_bandList[0] ) );
     int numOfEntries = 0;
 



More information about the fdo-commits mailing list