diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2018-05-17 10:36:46 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2018-05-17 10:40:13 +0200 |
commit | 1e5793f9e67ad13bb99a6e694fe990348c96ad87 (patch) | |
tree | 645fb862651261cee4f651e611fc92d912297795 /source | |
parent | 3394b1678d1d49dea5b10799c507623a4ad444b5 (diff) | |
download | mupdf-1e5793f9e67ad13bb99a6e694fe990348c96ad87.tar.xz |
mutool extract: Remove spurious 'break' statement and fix double free.
Diffstat (limited to 'source')
-rw-r--r-- | source/tools/pdfextract.c | 2 |
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); |