From 28d9c75ed780414a7ae71cab88cc86536444b255 Mon Sep 17 00:00:00 2001 From: Sebastian Rasmussen Date: Tue, 11 Oct 2016 19:06:22 +0800 Subject: Free document in fz_drop_document(), not in subclassing documents. --- source/xps/xps-zip.c | 1 - 1 file changed, 1 deletion(-) (limited to 'source/xps/xps-zip.c') diff --git a/source/xps/xps-zip.c b/source/xps/xps-zip.c index fbcb6d44..1d8f5bc8 100644 --- a/source/xps/xps-zip.c +++ b/source/xps/xps-zip.c @@ -217,7 +217,6 @@ xps_drop_document(fz_context *ctx, xps_document *doc) xps_drop_page_list(ctx, doc); fz_free(ctx, doc->start_part); - fz_free(ctx, doc); } static int -- cgit v1.2.3