[gs-commits] rev 11616 - trunk/gs/base

ray at ghostscript.com ray at ghostscript.com
Mon Aug 9 00:41:31 UTC 2010


Author: ray
Date: 2010-08-09 00:41:31 +0000 (Mon, 09 Aug 2010)
New Revision: 11616

Modified:
   trunk/gs/base/gxpcmap.c
Log:
Free the pattern-clist devices that are created (and left for the GC to
free) when pattern-clist patterns are used with a device that is using the
clist for the page. Those that were allocated during the print_page clist
playback would be those that leaked. Since the devices were closed, this
could lead to GC referencing objects that were invalid. Related to, but
not the final fix to Bug 691527.


Modified: trunk/gs/base/gxpcmap.c
===================================================================
--- trunk/gs/base/gxpcmap.c	2010-08-09 00:07:27 UTC (rev 11615)
+++ trunk/gs/base/gxpcmap.c	2010-08-09 00:41:31 UTC (rev 11616)
@@ -727,6 +727,7 @@
                             ctile->cdev->common.memory);
             rc_decrement(ctile->cdev->common.icc_cache_cl,
                             "gx_pattern_cache_free_entry");
+	    gs_free_object(ctile->cdev->common.memory, ctile->cdev, "free_pattern_cache_entry(pattern-clist)");
 	    ctile->cdev = NULL;
 	}
 



More information about the gs-commits mailing list