summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);