From 91ac75c660d7d7100e4c55d63cbbd27729da351b Mon Sep 17 00:00:00 2001 From: Sebastian Rasmussen Date: Tue, 11 Oct 2016 21:00:24 +0800 Subject: Always call fz_drop_document() to drop the document. --- source/html/epub-doc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/html') diff --git a/source/html/epub-doc.c b/source/html/epub-doc.c index efa43075..d9b0a0c9 100644 --- a/source/html/epub-doc.c +++ b/source/html/epub-doc.c @@ -463,7 +463,7 @@ epub_init(fz_context *ctx, fz_archive *zip) } fz_catch(ctx) { - epub_drop_document(ctx, (fz_document*)doc); + fz_drop_document(ctx, &doc->super); fz_rethrow(ctx); } -- cgit v1.2.3