diff options
author | Robin Watts <robin.watts@artifex.com> | 2017-01-31 14:57:37 +0000 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2017-01-31 14:59:59 +0000 |
commit | b3bac973e5c8e1f93e52660f953c83eccaf5d17b (patch) | |
tree | aa4f60748a21390c958e065438c673018d42f24f /source/tools | |
parent | 35b2aeef91fdd062f54beba302726c9ea279114e (diff) | |
download | mupdf-b3bac973e5c8e1f93e52660f953c83eccaf5d17b.tar.xz |
muraster: When outputting to /dev/null, still free bitmaps.
This was leading to memory leaks on the dev board.
Diffstat (limited to 'source/tools')
-rw-r--r-- | source/tools/muraster.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/tools/muraster.c b/source/tools/muraster.c index 3857e6d8..22227bf2 100644 --- a/source/tools/muraster.c +++ b/source/tools/muraster.c @@ -636,10 +636,10 @@ static int dodrawpage(fz_context *ctx, int pagenum, fz_cookie *cookie, render_de /* If we get any errors while outputting the bands, retrying won't help. */ errors_are_fatal = 1; fz_write_band(ctx, render->bander, bit ? bit->stride : pix->stride, band_start, draw_height, bit ? bit->samples : pix->samples); - fz_drop_bitmap(ctx, bit); - bit = NULL; errors_are_fatal = 0; } + fz_drop_bitmap(ctx, bit); + bit = NULL; if (render->num_workers > 0 && band + render->num_workers < bands) { |