summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@gmail.com>2016-10-18 21:21:00 +0800
committerSebastian Rasmussen <sebras@gmail.com>2016-10-18 21:23:11 +0800
commit6dcf860ef683ab416151913150790e61ff26c1b8 (patch)
treea81887c642e197fa18316ff1d0cd1e7e6e76bbde /source
parentb90748a78964b5e49b418fe81cf8cc04b104ff0e (diff)
downloadmupdf-6dcf860ef683ab416151913150790e61ff26c1b8.tar.xz
Drop scaled pixmap later in draw_fill_image_mask().
Following the pattern in draw_fill_image().
Diffstat (limited to 'source')
-rw-r--r--source/fitz/draw-device.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source/fitz/draw-device.c b/source/fitz/draw-device.c
index f460da85..a315a13e 100644
--- a/source/fitz/draw-device.c
+++ b/source/fitz/draw-device.c
@@ -1598,14 +1598,13 @@ fz_draw_fill_image_mask(fz_context *ctx, fz_device *devp, fz_image *image, const
fz_paint_image_with_color(state->dest, &state->scissor, state->shape, pixmap, &local_ctm, colorbv, !(devp->hints & FZ_DONT_INTERPOLATE_IMAGES), devp->flags & FZ_DEVFLAG_GRIDFIT_AS_TILED);
- if (scaled)
- fz_drop_pixmap(ctx, scaled);
if (state->blendmode & FZ_BLEND_KNOCKOUT)
fz_knockout_end(ctx, dev);
}
fz_always(ctx)
{
+ fz_drop_pixmap(ctx, scaled);
fz_drop_pixmap(ctx, orig_pixmap);
}
fz_catch(ctx)