summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pdf/pdf_font1.c6
-rw-r--r--pdf/pdf_font1C.c6
-rw-r--r--psi/zcie.c10
3 files changed, 13 insertions, 9 deletions
diff --git a/pdf/pdf_font1.c b/pdf/pdf_font1.c
index 87ba858b7..1255a9fba 100644
--- a/pdf/pdf_font1.c
+++ b/pdf/pdf_font1.c
@@ -168,11 +168,13 @@ pdfi_t1_seac_data(gs_font_type1 *pfont, int ccode, gs_glyph *pglyph, gs_const_st
pdfi_countup(glyphname);
code = pdfi_dict_get_by_key(ctx, pdffont1->CharStrings, glyphname, (pdf_obj **)&charstring);
pdfi_countdown(glyphname);
- if (code >= 0)
- if (pgd != NULL)
+ if (code >= 0) {
+ if (pgd != NULL) {
gs_glyph_data_from_bytes(pgd, charstring->data, 0, charstring->length, NULL);
+ }
pdfi_countdown(charstring);
}
+ }
}
return code;
diff --git a/pdf/pdf_font1C.c b/pdf/pdf_font1C.c
index f4788845f..3c9ca2785 100644
--- a/pdf/pdf_font1C.c
+++ b/pdf/pdf_font1C.c
@@ -205,11 +205,13 @@ pdfi_cff_seac_data(gs_font_type1 *pfont, int ccode, gs_glyph *pglyph, gs_const_s
pdfi_countup(glyphname);
code = pdfi_dict_get_by_key(ctx, cfffont->CharStrings, glyphname, (pdf_obj **)&charstring);
pdfi_countdown(glyphname);
- if (code >= 0)
- if (pgd != NULL)
+ if (code >= 0) {
+ if (pgd != NULL) {
gs_glyph_data_from_bytes(pgd, charstring->data, 0, charstring->length, NULL);
+ }
pdfi_countdown(charstring);
}
+ }
}
return code;
diff --git a/psi/zcie.c b/psi/zcie.c
index 932841868..ea95dcfcd 100644
--- a/psi/zcie.c
+++ b/psi/zcie.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -467,8 +467,8 @@ ciedefgspace(i_ctx_t *i_ctx_p, ref *CIEDict, uint64_t dictkey)
check_read_type(*ptref, t_array);
if (r_size(ptref) != 5)
return_error(gs_error_rangecheck);
- /* Stable memory due to current caching of color space */
- code = gs_cspace_build_CIEDEFG(&pcs, NULL, mem->stable_memory);
+ /* Stable memory due to current caching of color space */
+ code = gs_cspace_build_CIEDEFG(&pcs, NULL, mem->stable_memory);
if (code < 0)
return cie_set_finish(i_ctx_p, pcs, &procs, edepth, code);
pcie = pcs->params.defg;
@@ -580,8 +580,8 @@ ciedefspace(i_ctx_t *i_ctx_p, ref *CIEDict, uint64_t dictkey)
check_read_type(*ptref, t_array);
if (r_size(ptref) != 4)
return_error(gs_error_rangecheck);
- /* Stable memory due to current caching of color space */
- code = gs_cspace_build_CIEDEF(&pcs, NULL, mem->stable_memory);
+ /* Stable memory due to current caching of color space */
+ code = gs_cspace_build_CIEDEF(&pcs, NULL, mem->stable_memory);
if (code < 0)
return cie_set_finish(i_ctx_p, pcs, &procs, edepth, code);
pcie = pcs->params.def;