[gs-cvs] rev 9356 - trunk/gs/base

giles at ghostscript.com giles at ghostscript.com
Wed Jan 14 14:58:56 PST 2009


Author: giles
Date: 2009-01-14 14:58:56 -0800 (Wed, 14 Jan 2009)
New Revision: 9356

Modified:
   trunk/gs/base/gdevbbox.c
Log:
Check for a null target_info in bbox_image_end_image before
trying to free it. Fixes bug 680019.


Modified: trunk/gs/base/gdevbbox.c
===================================================================
--- trunk/gs/base/gdevbbox.c	2009-01-14 18:02:11 UTC (rev 9355)
+++ trunk/gs/base/gdevbbox.c	2009-01-14 22:58:56 UTC (rev 9356)
@@ -1115,8 +1115,11 @@
 bbox_image_end_image(gx_image_enum_common_t * info, bool draw_last)
 {
     bbox_image_enum *pbe = (bbox_image_enum *) info;
-    int code = gx_image_end(pbe->target_info, draw_last);
+    int code = 0;
 
+    if (pbe->target_info)
+      code = gx_image_end(pbe->target_info, draw_last);
+
     gx_image_free_enum(&info);
     return code;
 }



More information about the gs-cvs mailing list