summaryrefslogtreecommitdiff
path: root/pdf/pdf_font0.c
diff options
context:
space:
mode:
authorChris Liddell <chris.liddell@artifex.com>2022-02-21 11:23:09 +0000
committerChris Liddell <chris.liddell@artifex.com>2022-02-21 11:28:05 +0000
commit68c5ebd4e4963ee5328d65c1e7a245cb10dac0df (patch)
tree655280fc4490d9ca99aa2f160d75a830092ce957 /pdf/pdf_font0.c
parentc8051ae666672cb7ca39531e28ec85636e1ce6d5 (diff)
downloadghostpdl-68c5ebd4e4963ee5328d65c1e7a245cb10dac0df.tar.gz
Ignore return value from replace_cache_entry() for fonts
Even if we cannot cache the instantiated font object, we can still use it, so don't treat a failure to cache as a "hard" error.
Diffstat (limited to 'pdf/pdf_font0.c')
-rw-r--r--pdf/pdf_font0.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/pdf/pdf_font0.c b/pdf/pdf_font0.c
index bfb5d6666..a322bfb47 100644
--- a/pdf/pdf_font0.c
+++ b/pdf/pdf_font0.c
@@ -492,12 +492,7 @@ int pdfi_read_type0_font(pdf_context *ctx, pdf_dict *font_dict, pdf_dict *stream
/* object_num can be zero if the dictionary was defined inline */
if (pdft0->object_num != 0) {
- code = replace_cache_entry(ctx, (pdf_obj *)pdft0);
- if (code < 0) {
- gs_free_object(ctx->memory, pfont0, "pdfi_read_type0_font(pfont0)");
- code = gs_note_error(gs_error_VMerror);
- goto error;
- }
+ (void)replace_cache_entry(ctx, (pdf_obj *)pdft0);
}
*ppdffont = (pdf_font *)pdft0;