diff options
Diffstat (limited to 'pdf/pdf_shade.c')
-rw-r--r-- | pdf/pdf_shade.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/pdf/pdf_shade.c b/pdf/pdf_shade.c index b281542b..3803f77e 100644 --- a/pdf/pdf_shade.c +++ b/pdf/pdf_shade.c @@ -960,15 +960,19 @@ pdf_load_type7_shade(fz_shade *shade, pdf_xref *xref, fz_obj *dict, static fz_shade * pdf_load_shading_dict(pdf_xref *xref, fz_obj *dict, fz_matrix transform) { - fz_shade * volatile shade = NULL; - pdf_function * volatile func[FZ_MAX_COLORS] = { NULL }; - fz_stream * volatile stream = NULL; + fz_shade *shade = NULL; + pdf_function *func[FZ_MAX_COLORS] = { NULL }; + fz_stream *stream = NULL; fz_obj *obj; int funcs; int type; int i; fz_context *ctx = xref->ctx; + fz_var(shade); + fz_var(func); + fz_var(stream); + fz_try(ctx) { shade = fz_malloc(ctx, sizeof(fz_shade)); |