summaryrefslogtreecommitdiff
path: root/fitz/res_font.c
diff options
context:
space:
mode:
Diffstat (limited to 'fitz/res_font.c')
-rw-r--r--fitz/res_font.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/fitz/res_font.c b/fitz/res_font.c
index 44046451..f076a9e9 100644
--- a/fitz/res_font.c
+++ b/fitz/res_font.c
@@ -212,8 +212,6 @@ fz_newfontfrombuffer(fz_font **fontp, unsigned char *data, int len, int index)
if (error)
return fz_rethrow(error, "cannot init freetype library");
- font = fz_newfont();
-
fterr = FT_New_Memory_Face(fz_ftlib, data, len, index, &face);
if (fterr)
return fz_throw("freetype: cannot load font: %s", ft_errorstring(fterr));