From 994770e2010e21cd8f90bacc34b9fae8a6350a40 Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Wed, 5 Oct 2016 19:40:50 +0100 Subject: Bug 697159: Fix memory leak in CBZ error handling. If we fail to open a CBZ page, we were dropping the CBZ specific part, but not the fz_page part. --- source/cbz/mucbz.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source') diff --git a/source/cbz/mucbz.c b/source/cbz/mucbz.c index 4cfb5ed6..cbd757bd 100644 --- a/source/cbz/mucbz.c +++ b/source/cbz/mucbz.c @@ -183,7 +183,7 @@ cbz_load_page(fz_context *ctx, cbz_document *doc, int number) fz_catch(ctx) { fz_free(ctx, data); - cbz_drop_page(ctx, page); + fz_drop_page(ctx, &page->super); fz_rethrow(ctx); } -- cgit v1.2.3