diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2016-03-03 14:01:59 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2016-03-14 17:08:28 +0100 |
commit | 3ac4819c5f0fc704e9ce3de8490db81e7ca745a6 (patch) | |
tree | 1964a36c380acdc96c2892e61c69dc2c5f35e07a /source/tools | |
parent | 7a2eb80369be5b9796f22c60410e7fbe7ea5b871 (diff) | |
download | mupdf-3ac4819c5f0fc704e9ce3de8490db81e7ca745a6.tar.xz |
js: Fix some reference counting errors.
Diffstat (limited to 'source/tools')
-rw-r--r-- | source/tools/murun.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/source/tools/murun.c b/source/tools/murun.c index 5c4a609b..0e8d319a 100644 --- a/source/tools/murun.c +++ b/source/tools/murun.c @@ -2236,8 +2236,6 @@ static void ffi_PDFDocument_addImage(js_State *J) fz_try(ctx) ind = pdf_add_image(ctx, pdf, image, 0); - fz_always(ctx) - fz_drop_image(ctx, image); fz_catch(ctx) rethrow(J); @@ -2253,8 +2251,6 @@ static void ffi_PDFDocument_addSimpleFont(js_State *J) fz_try(ctx) ind = pdf_add_simple_font(ctx, pdf, font); - fz_always(ctx) - fz_drop_font(ctx, font); fz_catch(ctx) rethrow(J); @@ -2270,8 +2266,6 @@ static void ffi_PDFDocument_addFont(js_State *J) fz_try(ctx) ind = pdf_add_cid_font(ctx, pdf, font); - fz_always(ctx) - fz_drop_font(ctx, font); fz_catch(ctx) rethrow(J); |