summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2018-05-17 10:36:46 +0200
committerTor Andersson <tor.andersson@artifex.com>2018-05-17 10:40:13 +0200
commit1e5793f9e67ad13bb99a6e694fe990348c96ad87 (patch)
tree645fb862651261cee4f651e611fc92d912297795
parent3394b1678d1d49dea5b10799c507623a4ad444b5 (diff)
downloadmupdf-1e5793f9e67ad13bb99a6e694fe990348c96ad87.tar.xz
mutool extract: Remove spurious 'break' statement and fix double free.
-rw-r--r--source/tools/pdfextract.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/source/tools/pdfextract.c b/source/tools/pdfextract.c
index 6d901d72..bf8b241a 100644
--- a/source/tools/pdfextract.c
+++ b/source/tools/pdfextract.c
@@ -119,7 +119,6 @@ static void saveimage(pdf_obj *ref)
unsigned char *data;
size_t len = fz_buffer_storage(ctx, cbuf->buffer, &data);
writejpeg(ctx, data, len, buf);
- break;
}
else
{
@@ -131,7 +130,6 @@ static void saveimage(pdf_obj *ref)
{
fz_drop_image(ctx, image);
fz_drop_pixmap(ctx, pix);
- pdf_drop_obj(ctx, ref);
}
fz_catch(ctx)
fz_rethrow(ctx);