diff options
author | Tor Andersson <tor@ghostscript.com> | 2009-07-02 20:13:22 +0200 |
---|---|---|
committer | Tor Andersson <tor@ghostscript.com> | 2009-07-02 20:13:22 +0200 |
commit | e7c85ee0c4967d800bbc34278d0fb5061c402d9b (patch) | |
tree | af8013ca777a680eba24f76f4b381769662b45a0 /apps/mozilla | |
parent | 553eef431b737081e9cd2d2de8cd00b805eb6ea6 (diff) | |
download | mupdf-e7c85ee0c4967d800bbc34278d0fb5061c402d9b.tar.xz |
Fix some typos in moz_main.
Diffstat (limited to 'apps/mozilla')
-rw-r--r-- | apps/mozilla/moz_main.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/apps/mozilla/moz_main.c b/apps/mozilla/moz_main.c index 3be5723b..a1539339 100644 --- a/apps/mozilla/moz_main.c +++ b/apps/mozilla/moz_main.c @@ -162,13 +162,17 @@ void pdfmoz_open(pdfmoz_t *moz, char *filename) */ obj = fz_dictgets(moz->xref->trailer, "Root"); - moz->xref->trailer = fz_resolveindirect(obj); + moz->xref->root = fz_resolveindirect(obj); + if (!moz->xref->root) + pdfmoz_error(moz, fz_throw("syntaxerror: missing Root object")); + if (moz->xref->root) + fz_keepobj(moz->xref->root); obj = fz_dictgets(moz->xref->trailer, "Info"); moz->xref->info = fz_resolveindirect(obj); + if (moz->xref->info) + fz_keepobj(moz->xref->info); - if (!moz->xref->trailer) - pdfmoz_error(moz, fz_throw("syntaxerror: missing Root object")); error = pdf_loadnametrees(moz->xref); if (error) |