summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source/tools/muraster.c4
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)
{