diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2011-09-21 00:11:22 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2011-09-21 00:11:22 +0200 |
commit | 69ed4a8f4dbfac7f2f1de925e34807e4fee3b27c (patch) | |
tree | b7f82296a259d360ce90f0826e475321d630a222 /xps/xps_tiff.c | |
parent | 99ba154018b7c4a2c47b4c7e721ffe6d9164f9f3 (diff) | |
download | mupdf-69ed4a8f4dbfac7f2f1de925e34807e4fee3b27c.tar.xz |
Don't thread ctx through safe fz_obj functions.
Diffstat (limited to 'xps/xps_tiff.c')
-rw-r--r-- | xps/xps_tiff.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/xps/xps_tiff.c b/xps/xps_tiff.c index 6e890f28..faef1ca7 100644 --- a/xps/xps_tiff.c +++ b/xps/xps_tiff.c @@ -192,22 +192,22 @@ xps_decode_tiff_fax(struct tiff *tiff, int comp, fz_stream *chain, byte *wp, int encoded_byte_align = fz_new_bool(ctx, comp == 2); params = fz_new_dict(ctx, 5); - fz_dict_puts(ctx, params, "Columns", columns); - fz_dict_puts(ctx, params, "Rows", rows); - fz_dict_puts(ctx, params, "BlackIs1", black_is_1); - fz_dict_puts(ctx, params, "K", k); - fz_dict_puts(ctx, params, "EncodedByteAlign", encoded_byte_align); - - fz_drop_obj(ctx, columns); - fz_drop_obj(ctx, rows); - fz_drop_obj(ctx, black_is_1); - fz_drop_obj(ctx, k); - fz_drop_obj(ctx, encoded_byte_align); + fz_dict_puts(params, "Columns", columns); + fz_dict_puts(params, "Rows", rows); + fz_dict_puts(params, "BlackIs1", black_is_1); + fz_dict_puts(params, "K", k); + fz_dict_puts(params, "EncodedByteAlign", encoded_byte_align); + + fz_drop_obj(columns); + fz_drop_obj(rows); + fz_drop_obj(black_is_1); + fz_drop_obj(k); + fz_drop_obj(encoded_byte_align); stm = fz_open_faxd(chain, params); n = fz_read(stm, wp, wlen); fz_close(stm); - fz_drop_obj(ctx, params); + fz_drop_obj(params); if (n < 0) return fz_error_note(n, "cannot read fax strip"); |