summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Bünzli <zeniko@gmail.com>2015-01-07 22:52:51 +0100
committerSimon Bünzli <zeniko@gmail.com>2015-01-20 20:55:56 +0100
commit11f93dffbb17e74012a7f507a64c584498bb6ed4 (patch)
treeda7f844f5833f8f8596d0afdd1421282cfefa77d
parent671c29011618e091845e83e23eb2e6a700e10906 (diff)
downloadmupdf-11f93dffbb17e74012a7f507a64c584498bb6ed4.tar.xz
fix memory leak introduced with commit 90c560641d9b459a658029eefc4cbb02fdbca0b5
-rw-r--r--source/pdf/pdf-xref.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/pdf/pdf-xref.c b/source/pdf/pdf-xref.c
index 549809a2..0a754084 100644
--- a/source/pdf/pdf-xref.c
+++ b/source/pdf/pdf-xref.c
@@ -1491,6 +1491,7 @@ pdf_close_document(pdf_document *doc)
doc->drop_js(doc->js);
pdf_free_xref_sections(doc);
+ fz_free(ctx, doc->xref_index);
if (doc->focus_obj)
pdf_drop_obj(doc->focus_obj);