summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ghostscript.com>2009-02-26 19:10:19 +0100
committerTor Andersson <tor@ghostscript.com>2009-02-26 19:10:19 +0100
commitf4c70c7d77c5436e519aebd8cadbf858a8b403a5 (patch)
tree6a37d7462c33e660c514129a82095d6976b2ba5d
parent6f9e2167d235a6b89ee13e3c98e5120a8c85fe29 (diff)
downloadmupdf-f4c70c7d77c5436e519aebd8cadbf858a8b403a5.tar.xz
Add missing reference count.
-rw-r--r--mupdf/pdf_font.c4
-rw-r--r--mupdf/pdf_store.c2
2 files changed, 2 insertions, 4 deletions
diff --git a/mupdf/pdf_font.c b/mupdf/pdf_font.c
index 4a1a29db..b073550d 100644
--- a/mupdf/pdf_font.c
+++ b/mupdf/pdf_font.c
@@ -1,8 +1,6 @@
#include "fitz.h"
#include "mupdf.h"
-#define noHINT
-
#include <ft2build.h>
#include FT_FREETYPE_H
#include FT_XFREE86_H
@@ -944,7 +942,7 @@ pdf_loadfont(pdf_fontdesc **fontdescp, pdf_xref *xref, fz_obj *dict, fz_obj *ref
if ((*fontdescp = pdf_finditem(xref->store, PDF_KFONT, ref)))
{
- // XXX pdf_keepfontdesc(*fontdescp);
+ pdf_keepfont(*fontdescp);
return fz_okay;
}
diff --git a/mupdf/pdf_store.c b/mupdf/pdf_store.c
index ab8004a0..349cc749 100644
--- a/mupdf/pdf_store.c
+++ b/mupdf/pdf_store.c
@@ -147,7 +147,7 @@ pdf_storeitem(pdf_store *store, pdf_itemkind kind, fz_obj *key, void *val)
case PDF_KPATTERN: pdf_keeppattern(val); break;
case PDF_KSHADE: fz_keepshade(val); break;
case PDF_KCMAP: pdf_keepcmap(val); break;
- case PDF_KFONT: fz_keepfont(val); break;
+ case PDF_KFONT: pdf_keepfont(val); break;
}
return fz_okay;