[mapguide-commits] r5513 - branches/2.2/MgDev/Common/Renderers

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Fri Jan 28 09:47:05 EST 2011


Author: jng
Date: 2011-01-28 06:47:05 -0800 (Fri, 28 Jan 2011)
New Revision: 5513

Modified:
   branches/2.2/MgDev/Common/Renderers/AGGImageIO.cpp
Log:
#1583: This ticket is actually a duplicate of #1420. Backport the same fix to the 2.2 branch

Modified: branches/2.2/MgDev/Common/Renderers/AGGImageIO.cpp
===================================================================
--- branches/2.2/MgDev/Common/Renderers/AGGImageIO.cpp	2011-01-28 07:15:25 UTC (rev 5512)
+++ branches/2.2/MgDev/Common/Renderers/AGGImageIO.cpp	2011-01-28 14:47:05 UTC (rev 5513)
@@ -1070,7 +1070,8 @@
             else    //if we allocated a temporary image to stretch-blit, destroy it
                 gdImageDestroy(gdimg24);
             //if we allocated a paletted image, destroy it (very likely that is)
-            gdImageDestroy(gdImgPalette);
+            if(NULL != gdImgPalette) 
+                gdImageDestroy(gdImgPalette);
 
             return byteData.release();
         }



More information about the mapguide-commits mailing list