summaryrefslogtreecommitdiff
path: root/source/pdf/pdf-xref.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2018-03-20 16:12:26 +0100
committerTor Andersson <tor.andersson@artifex.com>2018-03-22 14:58:18 +0100
commit6d433a5702bda01f17407be6c272eae8653d1800 (patch)
tree0ae255a1488b2da1f729b256f33845f4ddd4b5c9 /source/pdf/pdf-xref.c
parent8d6283fd202e650e80470a544442d384d10a0b7e (diff)
downloadmupdf-6d433a5702bda01f17407be6c272eae8653d1800.tar.xz
Use pdf_dict_put_dict family of functions.
Diffstat (limited to 'source/pdf/pdf-xref.c')
-rw-r--r--source/pdf/pdf-xref.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/pdf/pdf-xref.c b/source/pdf/pdf-xref.c
index 72e0dc43..133ac570 100644
--- a/source/pdf/pdf-xref.c
+++ b/source/pdf/pdf-xref.c
@@ -2725,7 +2725,7 @@ pdf_document *pdf_create_document(fz_context *ctx)
pdf_dict_put_drop(ctx, root, PDF_NAME_Pages, pdf_add_object_drop(ctx, doc, pages));
pdf_dict_put(ctx, pages, PDF_NAME_Type, PDF_NAME_Pages);
pdf_dict_put_int(ctx, pages, PDF_NAME_Count, 0);
- pdf_dict_put_drop(ctx, pages, PDF_NAME_Kids, pdf_new_array(ctx, doc, 1));
+ pdf_dict_put_array(ctx, pages, PDF_NAME_Kids, 1);
/* Set the trailer of the final xref section. */
doc->xref_sections[0].trailer = trailer;