From 8cb0a389794356d7b6624f78365a5e92efdeb8e8 Mon Sep 17 00:00:00 2001 From: Sebastian Rasmussen Date: Sun, 11 Jun 2017 23:11:42 +0800 Subject: Make sure to always drop a fz_device even upon error. --- platform/java/mupdf_native.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'platform/java') diff --git a/platform/java/mupdf_native.c b/platform/java/mupdf_native.c index d363242a..a2e58249 100644 --- a/platform/java/mupdf_native.c +++ b/platform/java/mupdf_native.c @@ -5101,9 +5101,9 @@ FUN(Page_textAsHtml)(JNIEnv *env, jobject self) } fz_always(ctx) { - fz_drop_stext_page(ctx, text); - fz_drop_device(ctx, dev); fz_drop_output(ctx, out); + fz_drop_device(ctx, dev); + fz_drop_stext_page(ctx, text); } fz_catch(ctx) { -- cgit v1.2.3