diff options
Diffstat (limited to 'fitz/res_font.c')
-rw-r--r-- | fitz/res_font.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/fitz/res_font.c b/fitz/res_font.c index 64ba5730..b06c4e4f 100644 --- a/fitz/res_font.c +++ b/fitz/res_font.c @@ -22,6 +22,7 @@ fz_newfont(void) font->fthint = 0; font->t3matrix = fz_identity(); + font->t3resources = nil; font->t3procs = nil; font->t3widths = nil; @@ -50,9 +51,11 @@ fz_dropfont(fz_font *font) { if (font->t3procs) { + if (font->t3resources) + fz_dropobj(font->t3resources); for (i = 0; i < 256; i++) if (font->t3procs[i]) - ; // XXX fz_droptree(font->t3procs[i]); + fz_dropbuffer(font->t3procs[i]); fz_free(font->t3procs); fz_free(font->t3widths); } |