summaryrefslogtreecommitdiff
path: root/source/pdf/pdf-annot-edit.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2016-01-05 14:21:46 +0100
committerTor Andersson <tor.andersson@artifex.com>2016-01-05 14:47:37 +0100
commit041a2c827efbf2ed0931426129e38aef9412177f (patch)
tree0cd5e492fddb901a52825ce7d7e7382ff50b3f67 /source/pdf/pdf-annot-edit.c
parentd521de5ffad2dcc6c151e25373dd8a26a84440eb (diff)
downloadmupdf-041a2c827efbf2ed0931426129e38aef9412177f.tar.xz
Separate pdf_drop_annots (that drops lists) and fz_drop_annot.
Diffstat (limited to 'source/pdf/pdf-annot-edit.c')
-rw-r--r--source/pdf/pdf-annot-edit.c4
1 files changed, 2 insertions, 2 deletions
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);
}