diff options
author | L Peter Deutsch <lpd@ghostscript.com> | 2000-03-10 04:32:51 +0000 |
---|---|---|
committer | L Peter Deutsch <lpd@ghostscript.com> | 2000-03-10 04:32:51 +0000 |
commit | 25631c22e0cee0bd2061e791a549355628f9952a (patch) | |
tree | d9543b1b30320d515e7cf50cb3cd2d3ba2965cb0 /gs/src/zfdecode.c | |
parent | bb05ff2b795b08b9f574f635f6f395b0aa842b43 (diff) |
Fix: CloseSource and CloseTarget were effectively ignored for Flate and LZW
filters with a Predictor, and for the DCT filters.
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@35 a1074d23-0009-0410-80fe-cf8c14f379e6
Diffstat (limited to 'gs/src/zfdecode.c')
-rw-r--r-- | gs/src/zfdecode.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/gs/src/zfdecode.c b/gs/src/zfdecode.c index a6df6db08..8848953b2 100644 --- a/gs/src/zfdecode.c +++ b/gs/src/zfdecode.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1994, 1996, 1998, 1999 Aladdin Enterprises. All rights reserved. +/* Copyright (C) 1994, 2000 Aladdin Enterprises. All rights reserved. This file is part of Aladdin Ghostscript. @@ -144,7 +144,7 @@ filter_read_predictor(i_ctx_t *i_ctx_p, int npop, return filter_read(i_ctx_p, npop, template, st, 0); { /* We need to cascade filters. */ - ref rsource, rdict, rfd; + ref rsource, rdict; int code; /* Save the operands, just in case. */ @@ -155,7 +155,6 @@ filter_read_predictor(i_ctx_t *i_ctx_p, int npop, return code; /* filter_read changed osp.... */ op = osp; - ref_assign(&rfd, op); code = (predictor == 2 ? filter_read(i_ctx_p, 0, &s_PDiffD_template, (stream_state *) & pds, 0) : @@ -168,7 +167,11 @@ filter_read_predictor(i_ctx_t *i_ctx_p, int npop, ref_assign(op, &rdict); return code; } - filter_mark_temp(&rfd, 2); /* Mark the decompression stream as temporary. */ + /* + * Mark the compression stream as temporary, and propagate + * CloseSource from it to the predictor stream. + */ + filter_mark_strm_temp(op, 2); return code; } } |