diff options
-rw-r--r-- | source/fitz/draw-device.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/source/fitz/draw-device.c b/source/fitz/draw-device.c index 43dbb52d..12ea4aa1 100644 --- a/source/fitz/draw-device.c +++ b/source/fitz/draw-device.c @@ -1827,12 +1827,13 @@ fz_draw_fill_image(fz_context *ctx, fz_device *devp, fz_image *image, const fz_m } fz_paint_image(state->dest, &state->scissor, state->shape, state->group_alpha, pixmap, &local_ctm, alpha * 255, !(devp->hints & FZ_DONT_INTERPOLATE_IMAGES), devp->flags & FZ_DEVFLAG_GRIDFIT_AS_TILED, eop); - - if (state->blendmode & FZ_BLEND_KNOCKOUT) - fz_knockout_end(ctx, dev); } fz_always(ctx) + { fz_drop_pixmap(ctx, pixmap); + if (state->blendmode & FZ_BLEND_KNOCKOUT) + fz_knockout_end(ctx, dev); + } fz_catch(ctx) fz_rethrow(ctx); } |