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/cbz/mucbz.c | 2 +- source/cbz/mutiff.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'source/cbz') diff --git a/source/cbz/mucbz.c b/source/cbz/mucbz.c index 23143fac..9fa522c8 100644 --- a/source/cbz/mucbz.c +++ b/source/cbz/mucbz.c @@ -213,7 +213,7 @@ cbz_open_document_with_stream(fz_context *ctx, fz_stream *file) } fz_catch(ctx) { - cbz_drop_document(ctx, doc); + fz_drop_document(ctx, &doc->super); fz_rethrow(ctx); } return doc; diff --git a/source/cbz/mutiff.c b/source/cbz/mutiff.c index fb88e11b..7817eb16 100644 --- a/source/cbz/mutiff.c +++ b/source/cbz/mutiff.c @@ -132,7 +132,7 @@ tiff_open_document_with_stream(fz_context *ctx, fz_stream *file) } fz_catch(ctx) { - tiff_drop_document(ctx, doc); + fz_drop_document(ctx, &doc->super); fz_rethrow(ctx); } -- cgit v1.2.3