diff options
author | Robin Watts <robin.watts@artifex.com> | 2011-12-16 16:23:53 +0000 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2011-12-16 16:23:53 +0000 |
commit | 1f8cccdeca9cf9082061b40d66fc8201c8b3ce80 (patch) | |
tree | b4b9cb3c744effb075c2884ea5e8e6e9e903c0d2 | |
parent | 81d80fed5412aed37046d23c0919875f5742e1e0 (diff) | |
download | mupdf-1f8cccdeca9cf9082061b40d66fc8201c8b3ce80.tar.xz |
Another memsqueezing fix.
-rw-r--r-- | apps/pdfdraw.c | 4 |
1 files changed, 4 insertions, 0 deletions
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); } } |