diff options
author | Robin Watts <robin.watts@artifex.com> | 2012-09-03 19:46:47 +0100 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2012-09-06 11:05:04 +0100 |
commit | 904ad7c43eb23e98dee3fabd09e053dc2702e39d (patch) | |
tree | ec0398a93bcb5233d06294cfdeae5890aea82aaf /pdf/pdf_function.c | |
parent | 8f1e01856eb96fe30776dfed1644c8f849688d23 (diff) | |
download | mupdf-904ad7c43eb23e98dee3fabd09e053dc2702e39d.tar.xz |
Add pdf_dict_puts_drop function.
Does the same as pdf_dict_puts, but guarantees to always drop the
value passed in (even if the function throws an error). This
allows calling code to have a much simpler life in some cases.
Update pdf_write to make use of this.
Also, fix pdf_dict_puts so it doesn't leak the key object that it
creates in the event of an error while growing the dictionary.
Diffstat (limited to 'pdf/pdf_function.c')
0 files changed, 0 insertions, 0 deletions