diff options
author | Sebastian Rasmussen <sebras@gmail.com> | 2017-01-02 16:53:25 +0100 |
---|---|---|
committer | Sebastian Rasmussen <sebras@gmail.com> | 2017-01-02 16:54:45 +0100 |
commit | f913eac88483dddf479949ee4bd9845272e26b67 (patch) | |
tree | 6e1eacda272e697ea96aa7c6524c2d2b82f3a657 | |
parent | e3f2b26ab2e1fd0efd93497676663e184471378e (diff) | |
download | mupdf-f913eac88483dddf479949ee4bd9845272e26b67.tar.xz |
Fix leak of image mask.
Commit 508db7953f094f58e9a99172c7803c3e67afe308 assumes that
callers free the supplied image mask. In one location this
was not the case.
-rw-r--r-- | source/pdf/pdf-image.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/pdf/pdf-image.c b/source/pdf/pdf-image.c index d44671b2..d2c610be 100644 --- a/source/pdf/pdf-image.c +++ b/source/pdf/pdf-image.c @@ -173,10 +173,10 @@ pdf_load_image_imp(fz_context *ctx, pdf_document *doc, pdf_obj *rdb, pdf_obj *di fz_always(ctx) { fz_drop_colorspace(ctx, colorspace); + fz_drop_image(ctx, mask); } fz_catch(ctx) { - fz_drop_image(ctx, mask); fz_drop_image(ctx, image); fz_rethrow(ctx); } |