[mapserver-commits] r8925 - sandbox/graphics

svn at osgeo.org svn at osgeo.org
Sun Apr 19 10:18:49 EDT 2009


Author: tamas
Date: 2009-04-19 10:18:49 -0400 (Sun, 19 Apr 2009)
New Revision: 8925

Modified:
   sandbox/graphics/mapdraw.c
Log:
Fixed an error condition in msPrepareImage

Modified: sandbox/graphics/mapdraw.c
===================================================================
--- sandbox/graphics/mapdraw.c	2009-04-19 09:23:40 UTC (rev 8924)
+++ sandbox/graphics/mapdraw.c	2009-04-19 14:18:49 UTC (rev 8925)
@@ -150,6 +150,8 @@
     else if (MS_RENDERER_PLUGIN(map->outputformat)) {
 		renderObj *r = map->outputformat->r;
 		image = r->createImage(map->width, map->height, map->outputformat,&map->imagecolor);
+        if (image == NULL)
+            return(NULL);
 		image->format = map->outputformat;
 		image->format->refcount++;
 		image->width = map->width;



More information about the mapserver-commits mailing list