summaryrefslogtreecommitdiff
path: root/pdf/pdf_function.c
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2012-09-03 19:46:47 +0100
committerRobin Watts <robin.watts@artifex.com>2012-09-06 11:05:04 +0100
commit904ad7c43eb23e98dee3fabd09e053dc2702e39d (patch)
treeec0398a93bcb5233d06294cfdeae5890aea82aaf /pdf/pdf_function.c
parent8f1e01856eb96fe30776dfed1644c8f849688d23 (diff)
downloadmupdf-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