[mapguide-commits] r5401 - sandbox/adsk/2.2gp/Common/Renderers

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Wed Nov 24 01:14:30 EST 2010


Author: liuar
Date: 2010-11-23 22:14:30 -0800 (Tue, 23 Nov 2010)
New Revision: 5401

Modified:
   sandbox/adsk/2.2gp/Common/Renderers/AGGImageIO.cpp
Log:
Port fix of Ticket #1420 to 2.2gp branch.

Modified: sandbox/adsk/2.2gp/Common/Renderers/AGGImageIO.cpp
===================================================================
--- sandbox/adsk/2.2gp/Common/Renderers/AGGImageIO.cpp	2010-11-24 02:40:39 UTC (rev 5400)
+++ sandbox/adsk/2.2gp/Common/Renderers/AGGImageIO.cpp	2010-11-24 06:14:30 UTC (rev 5401)
@@ -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