diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2014-03-20 16:55:55 +0100 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2014-03-25 16:44:44 +0000 |
commit | 80292f4511278d6ec3c7b3c0cc8d860f1d9bb8c5 (patch) | |
tree | 3e4366e31fa24cca79617164408cefb12a28c42c /source/pdf/pdf-xref.c | |
parent | 95361b7f10880776f0db3030030842d94ba341a9 (diff) | |
download | mupdf-80292f4511278d6ec3c7b3c0cc8d860f1d9bb8c5.tar.xz |
Break dependencies on pdf-form.c and pdf-js.c
Split functions out of pdf-form.c that shouldn't be there, and make
javascript initialization explicit.
Diffstat (limited to 'source/pdf/pdf-xref.c')
-rw-r--r-- | source/pdf/pdf-xref.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source/pdf/pdf-xref.c b/source/pdf/pdf-xref.c index ef238fb1..9bf735da 100644 --- a/source/pdf/pdf-xref.c +++ b/source/pdf/pdf-xref.c @@ -1168,8 +1168,6 @@ pdf_init_document(pdf_document *doc) dict = NULL; } } - doc->js = pdf_new_js(doc); - pdf_js_load_document_level(doc->js); } fz_catch(ctx) { @@ -1218,7 +1216,8 @@ pdf_close_document(pdf_document *doc) * glyph cache at this point. */ fz_purge_glyph_cache(ctx); - pdf_drop_js(doc->js); + if (doc->js) + doc->drop_js(doc->js); pdf_free_xref_sections(doc); |