summaryrefslogtreecommitdiff
path: root/pdf/pdf_xref.c
diff options
context:
space:
mode:
authorPaul Gardiner <paul@glidos.net>2012-05-08 15:12:13 +0100
committerPaul Gardiner <paul@glidos.net>2012-05-08 15:12:13 +0100
commit9ebe09595ad8088f518b6397e791aa44c27a374f (patch)
tree7ad61da049f0905f64bebfc75f34547467d053d9 /pdf/pdf_xref.c
parent1ee037cf638874f8f726bcde8c79ef135cedc755 (diff)
downloadmupdf-9ebe09595ad8088f518b6397e791aa44c27a374f.tar.xz
First go at Javascript-engine abstract API
Diffstat (limited to 'pdf/pdf_xref.c')
-rw-r--r--pdf/pdf_xref.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/pdf/pdf_xref.c b/pdf/pdf_xref.c
index f260dcbc..e73ce72a 100644
--- a/pdf/pdf_xref.c
+++ b/pdf/pdf_xref.c
@@ -690,6 +690,7 @@ pdf_open_document_with_stream(fz_stream *file)
fz_try(ctx)
{
+ xref->js = pdf_new_js(xref);
pdf_load_xref(xref, &xref->lexbuf.base);
}
fz_catch(ctx)
@@ -812,6 +813,8 @@ pdf_close_document(pdf_document *xref)
return;
ctx = xref->ctx;
+ pdf_drop_js(xref->js);
+
if (xref->table)
{
for (i = 0; i < xref->len; i++)