From 141bd24f0885b29ae50b36bd964b4e2f4c69f980 Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Wed, 25 Mar 2015 11:53:34 +0000 Subject: Fix reference counting mistake in forms support. I broke this as part of the PDF Name refactoring. --- source/pdf/pdf-form.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/pdf/pdf-form.c b/source/pdf/pdf-form.c index f18396c4..e34d5f4d 100644 --- a/source/pdf/pdf-form.c +++ b/source/pdf/pdf-form.c @@ -417,7 +417,7 @@ static void set_check(fz_context *ctx, pdf_document *doc, pdf_obj *chk, pdf_obj else val = PDF_NAME_Off; - pdf_dict_put_drop(ctx, chk, PDF_NAME_AS, val); + pdf_dict_put(ctx, chk, PDF_NAME_AS, val); } /* Set the values of all fields in a group defined by a node -- cgit v1.2.3