diff options
author | Sebastian Rasmussen <sebras@gmail.com> | 2018-01-23 16:43:59 +0100 |
---|---|---|
committer | Sebastian Rasmussen <sebras@gmail.com> | 2018-01-24 15:29:23 +0100 |
commit | 83d4dae44c71816c084a635550acc1a51529b881 (patch) | |
tree | 031cbc089790448852a5152077b8d85e41debf5b /source/fitz | |
parent | f597300439e62f5e921f0d7b1e880b5c1a1f1607 (diff) | |
download | mupdf-83d4dae44c71816c084a635550acc1a51529b881.tar.xz |
Bug 698904: Upon error both free color converter and clear its pointer.
Without this change future calls to fz_fin_cached_color_converter()
will try to dereference the already freed pointer.
Diffstat (limited to 'source/fitz')
-rw-r--r-- | source/fitz/colorspace.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/fitz/colorspace.c b/source/fitz/colorspace.c index c099297a..336513fe 100644 --- a/source/fitz/colorspace.c +++ b/source/fitz/colorspace.c @@ -3663,6 +3663,7 @@ void fz_init_cached_color_converter(fz_context *ctx, fz_color_converter *cc, fz_ fz_drop_color_converter(ctx, &cached->base); fz_drop_hash_table(ctx, cached->hash); fz_free(ctx, cached); + cc->opaque = NULL; fz_rethrow(ctx); } } |