diff options
-rw-r--r-- | mupdf/pdf_page.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mupdf/pdf_page.c b/mupdf/pdf_page.c index 61e10f62..8954d2ba 100644 --- a/mupdf/pdf_page.c +++ b/mupdf/pdf_page.c @@ -276,7 +276,8 @@ pdf_droppage(pdf_page *page) if (page->links) pdf_droplink(page->links); fz_dropobj(page->resources); - fz_droptree(page->tree); + if (page->tree) + fz_droptree(page->tree); fz_free(page); } |