diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2011-04-03 22:09:06 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2011-04-03 22:09:06 +0200 |
commit | 9eb7d89c1609f9ebec4ab8545c95de3f8874e2da (patch) | |
tree | a22983e0ba7f1c811408b44a45a329f6ee622e0f /fitz/res_font.c | |
parent | 5ea6c5701e7ec3f738a8adb6d20790edcda781ba (diff) | |
download | mupdf-9eb7d89c1609f9ebec4ab8545c95de3f8874e2da.tar.xz |
xps: Plug memory leaks.
Diffstat (limited to 'fitz/res_font.c')
-rw-r--r-- | fitz/res_font.c | 2 |
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)); |