diff options
author | Robin Watts <robin.watts@artifex.com> | 2013-04-29 12:03:51 +0100 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2013-04-29 12:04:48 +0100 |
commit | 308e5c892acd4fd0e54dc8a61b997da1072e0871 (patch) | |
tree | b29d5f21995d319cd576c72a6109fe54e4f9a683 /fitz | |
parent | 8c8aba0f79fd4329dfbb2f39bfb40185e6a8d365 (diff) | |
download | mupdf-308e5c892acd4fd0e54dc8a61b997da1072e0871.tar.xz |
Fix various leaks in the dev_text device.
Thanks to mhfan for the reports.
Diffstat (limited to 'fitz')
-rw-r--r-- | fitz/dev_text.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fitz/dev_text.c b/fitz/dev_text.c index 05f52e4c..1f88818d 100644 --- a/fitz/dev_text.c +++ b/fitz/dev_text.c @@ -471,6 +471,7 @@ fz_free_text_block(fz_context *ctx, fz_text_block *block) for (line = block->lines; line < block->lines + block->len; line++) fz_free_text_line_contents(ctx, line); fz_free(ctx, block->lines); + fz_free(ctx, block); } static void @@ -480,6 +481,7 @@ fz_free_image_block(fz_context *ctx, fz_image_block *block) return; fz_drop_image(ctx, block->image); fz_drop_colorspace(ctx, block->cspace); + fz_free(ctx, block); } void @@ -1184,6 +1186,7 @@ fz_print_text_page_html(fz_context *ctx, fz_output *out, fz_text_page *page) fz_printf(out, "image/png;base64,"); send_data_base64(out, buf); fz_drop_buffer(ctx, buf); + fz_drop_pixmap(ctx, pix); break; } } |