diff options
Diffstat (limited to 'source/fitz')
-rw-r--r-- | source/fitz/draw-mesh.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/source/fitz/draw-mesh.c b/source/fitz/draw-mesh.c index cbce5dbf..a40cdd12 100644 --- a/source/fitz/draw-mesh.c +++ b/source/fitz/draw-mesh.c @@ -288,8 +288,11 @@ fz_paint_shade(fz_context *ctx, fz_shade *shade, const fz_matrix *ctm, fz_pixmap } fz_catch(ctx) { - fz_drop_pixmap(ctx, conv); - fz_drop_pixmap(ctx, temp); + if (shade->use_function) + { + fz_drop_pixmap(ctx, conv); + fz_drop_pixmap(ctx, temp); + } fz_rethrow(ctx); } } |