summaryrefslogtreecommitdiff
path: root/source/pdf/pdf-page.c
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@gmail.com>2016-10-11 20:39:26 +0800
committerSebastian Rasmussen <sebras@gmail.com>2016-10-18 21:25:10 +0800
commit23ac569165b66403abfe72e89007675ceaa9bde0 (patch)
treeaf9f03148079f3ac564bc8f6d7c007c16cf8f444 /source/pdf/pdf-page.c
parent6dcf860ef683ab416151913150790e61ff26c1b8 (diff)
downloadmupdf-23ac569165b66403abfe72e89007675ceaa9bde0.tar.xz
Avoid checking argument to fz_drop_*()/fz_free().
As fz_drop_*()/fz_free() all must handle NULL.
Diffstat (limited to 'source/pdf/pdf-page.c')
-rw-r--r--source/pdf/pdf-page.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/source/pdf/pdf-page.c b/source/pdf/pdf-page.c
index 73d01480..f0e45402 100644
--- a/source/pdf/pdf-page.c
+++ b/source/pdf/pdf-page.c
@@ -507,10 +507,8 @@ pdf_drop_page_imp(fz_context *ctx, pdf_page *page)
if (page == NULL)
return;
- if (page->links)
- fz_drop_link(ctx, page->links);
- if (page->annots)
- pdf_drop_annots(ctx, page->annots);
+ fz_drop_link(ctx, page->links);
+ pdf_drop_annots(ctx, page->annots);
/* doc->focus, when not NULL, refers to one of
* the annotations and must be NULLed when the