summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ghostscript.com>2009-12-02 17:58:29 +0100
committerTor Andersson <tor@ghostscript.com>2009-12-02 17:58:29 +0100
commitc25a1ced8abb1c14e6f3673fe3419963243a1c85 (patch)
tree3ce76c0c8c40c7e7003daa2faa74d299063d3375
parent86992e055f119d4909fa084e447f003492b57c67 (diff)
downloadmupdf-c25a1ced8abb1c14e6f3673fe3419963243a1c85.tar.xz
Initialize and free t3widths pointer in fz_font.
-rw-r--r--fitz/res_font.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fitz/res_font.c b/fitz/res_font.c
index 5f14d129..16ff3523 100644
--- a/fitz/res_font.c
+++ b/fitz/res_font.c
@@ -22,6 +22,7 @@ fz_newfont(void)
font->t3matrix = fz_identity();
font->t3procs = nil;
+ font->t3widths = nil;
font->bbox.x0 = 0;
font->bbox.y0 = 0;
@@ -52,6 +53,7 @@ fz_dropfont(fz_font *font)
if (font->t3procs[i])
fz_droptree(font->t3procs[i]);
fz_free(font->t3procs);
+ fz_free(font->t3widths);
}
if (font->ftface)