[gs-commits] rev 11808 - trunk/gs/base
chrisl at ghostscript.com
chrisl at ghostscript.com
Thu Oct 14 15:06:02 UTC 2010
Author: chrisl
Date: 2010-10-14 15:06:01 +0000 (Thu, 14 Oct 2010)
New Revision: 11808
Modified:
trunk/gs/base/gxccman.c
Log:
In gx_alloc_char_bits() the "target" device can be NULL, in which case
avoid trying to decrement the ICC profile object for the target device.
patch credit to William Bader.
Bug 691651.
No cluster differences expected.
Modified: trunk/gs/base/gxccman.c
===================================================================
--- trunk/gs/base/gxccman.c 2010-10-14 15:01:56 UTC (rev 11807)
+++ trunk/gs/base/gxccman.c 2010-10-14 15:06:01 UTC (rev 11808)
@@ -609,7 +609,7 @@
gs_make_mem_mono_device(pdev, pdev->memory, target);
rc_decrement_only(target, "gx_alloc_char_bits"); /* can't go to 0 */
/* Decrement the ICC profile also. Same device is getting reinitialized */
- rc_decrement(target->device_icc_profile,"gx_alloc_char_bits(icc profile)");
+ if (target != NULL) rc_decrement(target->device_icc_profile,"gx_alloc_char_bits(icc profile)");
pdev->rc = rc;
pdev->retained = retained;
pdev->width = iwidth;
More information about the gs-commits
mailing list