23 lines
765 B
Diff
23 lines
765 B
Diff
|
From: Chris Liddell <chris.liddell@artifex.com>
|
||
|
Date: Wed, 5 Oct 2016 08:59:25 +0000 (+0100)
|
||
|
Subject: Bug 697179: Reference count device icc profile
|
||
|
X-Git-Url: http://git.ghostscript.com/?p=user%2Fchrisl%2Fghostpdl.git;a=commitdiff_plain;h=d5ad1e0298e1c193087c824eb4f79628b182e28b;hp=71ac87493b1e445d6c07554d4246cf7d4f44875c
|
||
|
|
||
|
Bug 697179: Reference count device icc profile
|
||
|
|
||
|
when copying a device
|
||
|
---
|
||
|
|
||
|
diff --git a/base/gsdevice.c b/base/gsdevice.c
|
||
|
index 778106f..aea986a 100644
|
||
|
--- a/base/gsdevice.c
|
||
|
+++ b/base/gsdevice.c
|
||
|
@@ -614,6 +614,7 @@ gx_device_init(gx_device * dev, const gx_device * proto, gs_memory_t * mem,
|
||
|
dev->memory = mem;
|
||
|
dev->retained = !internal;
|
||
|
rc_init(dev, mem, (internal ? 0 : 1));
|
||
|
+ rc_increment(dev->icc_struct);
|
||
|
}
|
||
|
|
||
|
void
|