diff options
author | Sebastian Rasmussen <sebras@gmail.com> | 2018-10-02 12:11:32 +0800 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2018-10-23 18:46:01 +0200 |
commit | fe0956197dff2d4406895b558a9a7c565c6110be (patch) | |
tree | 20aee886f3399666ea21af221c2f8b2af3994e78 /source | |
parent | 3b70f431e4b6064118f57b861efa0eb213d811d7 (diff) | |
download | mupdf-fe0956197dff2d4406895b558a9a7c565c6110be.tar.xz |
Drop hash table upon exception.
Diffstat (limited to 'source')
-rw-r--r-- | source/fitz/colorspace.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/fitz/colorspace.c b/source/fitz/colorspace.c index f25c5fa8..de3b3578 100644 --- a/source/fitz/colorspace.c +++ b/source/fitz/colorspace.c @@ -3081,11 +3081,13 @@ std_conv_pixmap(fz_context *ctx, fz_pixmap *dst, fz_pixmap *src, fz_colorspace * } } fz_always(ctx) + { fz_drop_color_converter(ctx, &cc); + fz_drop_hash_table(ctx, lookup); + } fz_catch(ctx) fz_rethrow(ctx); - fz_drop_hash_table(ctx, lookup); } } |