From 1f8cccdeca9cf9082061b40d66fc8201c8b3ce80 Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Fri, 16 Dec 2011 16:23:53 +0000 Subject: Another memsqueezing fix. --- apps/pdfdraw.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'apps') diff --git a/apps/pdfdraw.c b/apps/pdfdraw.c index 71fb5d89..0965e9d5 100644 --- a/apps/pdfdraw.c +++ b/apps/pdfdraw.c @@ -123,6 +123,7 @@ static void drawpage(pdf_xref *xref, int pagenum) { fz_free_device(dev); fz_free_display_list(ctx, list); + pdf_free_page(ctx, page); fz_throw(ctx, "cannot draw page %d in file '%s'", pagenum, filename); } fz_free_device(dev); @@ -144,6 +145,7 @@ static void drawpage(pdf_xref *xref, int pagenum) { fz_free_device(dev); fz_free_display_list(ctx, list); + pdf_free_page(ctx, page); fz_rethrow(ctx); } fz_free_device(dev); @@ -177,6 +179,7 @@ static void drawpage(pdf_xref *xref, int pagenum) fz_free_device(dev); fz_free_text_span(ctx, text); fz_free_display_list(ctx, list); + pdf_free_page(ctx, page); fz_rethrow(ctx); } fz_free_text_span(ctx, text); @@ -269,6 +272,7 @@ static void drawpage(pdf_xref *xref, int pagenum) fz_free_device(dev); fz_drop_pixmap(ctx, pix); fz_free_display_list(ctx, list); + pdf_free_page(ctx, page); fz_rethrow(ctx); } } -- cgit v1.2.3