From 041a2c827efbf2ed0931426129e38aef9412177f Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Tue, 5 Jan 2016 14:21:46 +0100 Subject: Separate pdf_drop_annots (that drops lists) and fz_drop_annot. --- source/pdf/pdf-annot-edit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/pdf/pdf-annot-edit.c') diff --git a/source/pdf/pdf-annot-edit.c b/source/pdf/pdf-annot-edit.c index aef14e6f..6b085055 100644 --- a/source/pdf/pdf-annot-edit.c +++ b/source/pdf/pdf-annot-edit.c @@ -138,7 +138,7 @@ pdf_create_annot(fz_context *ctx, pdf_document *doc, pdf_page *page, fz_annot_ty /* Linking must be done after any call that might throw because - pdf_drop_annot below actually frees a list. Put the new annot + pdf_drop_annots below actually frees a list. Put the new annot at the end of the list, so that it will be drawn last. */ *page->annot_tailp = annot; @@ -153,7 +153,7 @@ pdf_create_annot(fz_context *ctx, pdf_document *doc, pdf_page *page, fz_annot_ty } fz_catch(ctx) { - pdf_drop_annot(ctx, annot); + pdf_drop_annots(ctx, annot); fz_rethrow(ctx); } -- cgit v1.2.3