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 | |
parent | 04c9c09af60b79f78a0c281cbb8e482318a2cdb7 (diff) | |
download | mupdf-6888c5757779610c9da201e34b70c1800b898616.tar.xz |
More memsqueezing fixes.
Diffstat (limited to 'pdf')
-rw-r--r-- | pdf/pdf_colorspace.c | 10 | ||||
-rw-r--r-- | pdf/pdf_interpret.c | 10 |
2 files changed, 10 insertions, 10 deletions
diff --git a/pdf/pdf_colorspace.c b/pdf/pdf_colorspace.c index 4ebf7826..9d2f87ed 100644 --- a/pdf/pdf_colorspace.c +++ b/pdf/pdf_colorspace.c @@ -384,15 +384,7 @@ pdf_load_colorspace(pdf_xref *xref, fz_obj *obj) cs = pdf_load_colorspace_imp(xref, obj); /* RJW: "cannot load colorspace (%d %d R)", fz_to_num(obj), fz_to_gen(obj) */ - fz_try(ctx) - { - fz_store_item(ctx, obj, cs, cs->size); - } - fz_catch(ctx) - { - fz_drop_colorspace(ctx, cs); - fz_rethrow(ctx); - } + fz_store_item(ctx, obj, cs, cs->size); return cs; } 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); } } |