summaryrefslogtreecommitdiff
path: root/source/pdf/pdf-font.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/pdf/pdf-font.c')
-rw-r--r--source/pdf/pdf-font.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/source/pdf/pdf-font.c b/source/pdf/pdf-font.c
index aaab41a5..133462d6 100644
--- a/source/pdf/pdf-font.c
+++ b/source/pdf/pdf-font.c
@@ -473,14 +473,10 @@ pdf_drop_font_imp(fz_context *ctx, fz_storable *fontdesc_)
{
pdf_font_desc *fontdesc = (pdf_font_desc *)fontdesc_;
- if (fontdesc->font)
- fz_drop_font(ctx, fontdesc->font);
- if (fontdesc->encoding)
- pdf_drop_cmap(ctx, fontdesc->encoding);
- if (fontdesc->to_ttf_cmap)
- pdf_drop_cmap(ctx, fontdesc->to_ttf_cmap);
- if (fontdesc->to_unicode)
- pdf_drop_cmap(ctx, fontdesc->to_unicode);
+ fz_drop_font(ctx, fontdesc->font);
+ pdf_drop_cmap(ctx, fontdesc->encoding);
+ pdf_drop_cmap(ctx, fontdesc->to_ttf_cmap);
+ pdf_drop_cmap(ctx, fontdesc->to_unicode);
fz_free(ctx, fontdesc->cid_to_gid);
fz_free(ctx, fontdesc->cid_to_ucs);
fz_free(ctx, fontdesc->hmtx);