diff options
author | Robin Watts <robin.watts@artifex.com> | 2011-12-16 19:51:34 +0000 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2011-12-16 19:51:34 +0000 |
commit | 6888c5757779610c9da201e34b70c1800b898616 (patch) | |
tree | 1f16b4bbc9bf1edaca15ff149151f4ec6d31b7ff /pdf/pdf_interpret.c | |
parent | 04c9c09af60b79f78a0c281cbb8e482318a2cdb7 (diff) | |
download | mupdf-6888c5757779610c9da201e34b70c1800b898616.tar.xz |
More memsqueezing fixes.
Diffstat (limited to 'pdf/pdf_interpret.c')
-rw-r--r-- | pdf/pdf_interpret.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/pdf/pdf_interpret.c b/pdf/pdf_interpret.c index a6c1714d..6478fb35 100644 --- a/pdf/pdf_interpret.c +++ b/pdf/pdf_interpret.c @@ -2153,7 +2153,15 @@ static void pdf_run_sh(pdf_csi *csi, fz_obj *rdb) { shd = pdf_load_shading(csi->xref, obj); /* RJW: "cannot load shading (%d %d R)", fz_to_num(obj), fz_to_gen(obj) */ - pdf_show_shade(csi, shd); + fz_try(ctx) + { + pdf_show_shade(csi, shd); + } + fz_catch(ctx) + { + fz_drop_shade(ctx, shd); + fz_rethrow(ctx); + } fz_drop_shade(ctx, shd); } } |