From 2707fa9e8e6d17d794330e719dec1b08161fb045 Mon Sep 17 00:00:00 2001 From: Sebastian Rasmussen Date: Tue, 12 Sep 2017 22:26:00 +0800 Subject: Consistently drop filter chain upon error. --- include/mupdf/fitz/filter.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/mupdf/fitz/filter.h b/include/mupdf/fitz/filter.h index 58dc3e21..2f73f02f 100644 --- a/include/mupdf/fitz/filter.h +++ b/include/mupdf/fitz/filter.h @@ -12,7 +12,7 @@ typedef struct fz_jbig2_globals_s fz_jbig2_globals; fz_stream *fz_open_copy(fz_context *ctx, fz_stream *chain); fz_stream *fz_open_null(fz_context *ctx, fz_stream *chain, int len, fz_off_t offset); fz_stream *fz_open_concat(fz_context *ctx, int max, int pad); -void fz_concat_push(fz_context *ctx, fz_stream *concat, fz_stream *chain); /* Ownership of chain is passed in */ +void fz_concat_push_drop(fz_context *ctx, fz_stream *concat, fz_stream *chain); /* Ownership of chain is passed in */ fz_stream *fz_open_arc4(fz_context *ctx, fz_stream *chain, unsigned char *key, unsigned keylen); fz_stream *fz_open_aesd(fz_context *ctx, fz_stream *chain, unsigned char *key, unsigned keylen); fz_stream *fz_open_a85d(fz_context *ctx, fz_stream *chain); -- cgit v1.2.3