diff options
Diffstat (limited to 'apps/mupdfdraw.c')
-rw-r--r-- | apps/mupdfdraw.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/mupdfdraw.c b/apps/mupdfdraw.c index 06e74842..0ab89449 100644 --- a/apps/mupdfdraw.c +++ b/apps/mupdfdraw.c @@ -122,7 +122,7 @@ static void drawpage(pdf_document *doc, int pagenum) { fz_free_device(dev); fz_free_display_list(ctx, list); - pdf_free_page(ctx, page); + pdf_free_page(doc, page); fz_throw(ctx, "cannot draw page %d in file '%s'", pagenum, filename); } fz_free_device(dev); @@ -145,7 +145,7 @@ static void drawpage(pdf_document *doc, int pagenum) { fz_free_device(dev); fz_free_display_list(ctx, list); - pdf_free_page(ctx, page); + pdf_free_page(doc, page); fz_rethrow(ctx); } fz_free_device(dev); @@ -180,7 +180,7 @@ static void drawpage(pdf_document *doc, int pagenum) fz_free_device(dev); fz_free_text_span(ctx, text); fz_free_display_list(ctx, list); - pdf_free_page(ctx, page); + pdf_free_page(doc, page); fz_rethrow(ctx); } fz_free_text_span(ctx, text); @@ -273,7 +273,7 @@ static void drawpage(pdf_document *doc, int pagenum) fz_free_device(dev); fz_drop_pixmap(ctx, pix); fz_free_display_list(ctx, list); - pdf_free_page(ctx, page); + pdf_free_page(doc, page); fz_rethrow(ctx); } } @@ -281,7 +281,7 @@ static void drawpage(pdf_document *doc, int pagenum) if (list) fz_free_display_list(ctx, list); - pdf_free_page(ctx, page); + pdf_free_page(doc, page); if (showtime) { |