summaryrefslogtreecommitdiff
path: root/source/pdf/pdf-image.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2018-03-20 16:12:48 +0100
committerTor Andersson <tor.andersson@artifex.com>2018-03-22 14:58:18 +0100
commitd92590ee1467880f327b2e688ae8bc353bdadb18 (patch)
tree51d446bc0fd746a8ac4fd31c229dec40c911c4ad /source/pdf/pdf-image.c
parente0c0500042bf90193c5deb196dafa5cdb64ec0dc (diff)
downloadmupdf-d92590ee1467880f327b2e688ae8bc353bdadb18.tar.xz
Use pdf_add_new_dict family of functions.
Diffstat (limited to 'source/pdf/pdf-image.c')
-rw-r--r--source/pdf/pdf-image.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/pdf/pdf-image.c b/source/pdf/pdf-image.c
index 35eff099..02e7ddf7 100644
--- a/source/pdf/pdf-image.c
+++ b/source/pdf/pdf-image.c
@@ -323,7 +323,7 @@ pdf_add_image(fz_context *ctx, pdf_document *doc, fz_image *image, int mask)
if (imref)
return imref;
- imobj = pdf_add_object_drop(ctx, doc, pdf_new_dict(ctx, doc, 3));
+ imobj = pdf_add_new_dict(ctx, doc, 3);
fz_try(ctx)
{
dp = pdf_dict_put_dict(ctx, imobj, PDF_NAME_DecodeParms, 3);