[gs-commits] ghostpdl branch, pdfi, updated. jbig2dec-0.14-2332-g709c4cb
[email protected] (Nancy Durgin) Thu, 10 Oct 2019 23:55:19 +0000 (UTC)
| Newsgroups | gmane.comp.printing.ghostscript.cvs |
|---|---|
| Message-ID | <[email protected]> |
The ghostpdl branch, pdfi has been updated
via 709c4cba1e30d84f5b2ca3f389446d11897325a0 (commit)
from ec281af848f863dd758006dc31d53d3c8b9fbdeb (commit)
----------------------------------------------------------------------
commit 709c4cba1e30d84f5b2ca3f389446d11897325a0
Author: Nancy Durgin <[email protected]>
Date: Thu Oct 10 15:34:28 2019 -0700
Fix memory leak in icc color space
diff --git a/pdf/pdf_colour.c b/pdf/pdf_colour.c
index 0e2780c..7895162 100644
--- a/pdf/pdf_colour.c
+++ b/pdf/pdf_colour.c
@@ -1875,8 +1875,8 @@ pdfi_create_indexed(pdf_context *ctx, pdf_array *color_array, int index,
else
pcs = gs_cspace_alloc(ctx->memory, &gs_color_space_type_Indexed);
+ /* NOTE: we don't need to increment the reference to pcs_base, since it is already 1 */
pcs->base_space = pcs_base;
- rc_increment_cs(pcs_base);
pcs->params.indexed.lookup.table.size = num_values;
pcs->params.indexed.use_proc = 0;
Summary of changes:
pdf/pdf_colour.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)