summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--base/gxpcmap.c2
-rw-r--r--pdf/pdf_colour.c1
2 files changed, 1 insertions, 2 deletions
diff --git a/base/gxpcmap.c b/base/gxpcmap.c
index efb51ed69..0dbe5fd12 100644
--- a/base/gxpcmap.c
+++ b/base/gxpcmap.c
@@ -1530,7 +1530,7 @@ gx_pattern_load(gx_device_color * pdc, const gs_gstate * pgs,
if (pinst->templat.uses_transparency) {
if_debug1m('v', mem, "gx_pattern_load: pushing the pdf14 compositor device into this graphics state pat_id = %ld\n", pinst->id);
if ((code = gs_push_pdf14trans_device(saved, true, false, 0, 0)) < 0) /* spot_color_count taken from pdf14 target values */
- return code;
+ goto fail;
saved->device->is_open = true;
} else {
/* For colored patterns we clear the pattern device's
diff --git a/pdf/pdf_colour.c b/pdf/pdf_colour.c
index cdbc73700..dbd14d145 100644
--- a/pdf/pdf_colour.c
+++ b/pdf/pdf_colour.c
@@ -2611,7 +2611,6 @@ static int pdfi_create_DeviceRGB(pdf_context *ctx, gs_color_space **ppcs)
}
} else {
code = pdfi_gs_setrgbcolor(ctx, 0, 0, 0);
- pdfi_set_colour_callback(ctx->pgs->color[0].color_space, ctx, pdfi_cspace_free_callback);
}
return code;
}