diff options
author | Robin Watts <robin.watts@artifex.com> | 2011-12-15 19:58:04 +0000 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2011-12-15 19:59:44 +0000 |
commit | 63e9df88676f80f418aedba5cf63ffb49d632444 (patch) | |
tree | b4eeac1008c84dc71ef2ca9f1baad5b9003417d7 | |
parent | e6118ac1b13cc49f637861fccbc32a10c4ea1ea7 (diff) | |
download | mupdf-63e9df88676f80f418aedba5cf63ffb49d632444.tar.xz |
Another Memsqueezing bug.
-rw-r--r-- | pdf/pdf_page.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/pdf/pdf_page.c b/pdf/pdf_page.c index d798eb2e..5a895445 100644 --- a/pdf/pdf_page.c +++ b/pdf/pdf_page.c @@ -56,7 +56,15 @@ pdf_load_page_tree_node(pdf_xref *xref, fz_obj *node, struct info info) info.rotate = obj; tmp = fz_new_null(ctx); - fz_dict_puts(node, ".seen", tmp); + fz_try(ctx) + { + fz_dict_puts(node, ".seen", tmp); + } + fz_catch(ctx) + { + fz_drop_obj(tmp); + fz_rethrow(ctx); + } fz_drop_obj(tmp); n = fz_array_len(kids); |