diff options
author | Robin Watts <Robin.Watts@artifex.com> | 2017-06-03 21:25:52 -0700 |
---|---|---|
committer | Robin Watts <Robin.Watts@artifex.com> | 2017-06-03 21:25:52 -0700 |
commit | ac99be0eb766433e6f0bb6275b3e23791e7b7204 (patch) | |
tree | 9a6cba5b2251ece14e74691c369be691b014f377 /source/pdf | |
parent | 565624dd5c042de4ddf95be251d4cd011e9460d0 (diff) | |
download | mupdf-ac99be0eb766433e6f0bb6275b3e23791e7b7204.tar.xz |
Add pdf_keep_document.
We have pdf_drop_document, so a pdf_keep_document seems justified
too.
Diffstat (limited to 'source/pdf')
-rw-r--r-- | source/pdf/pdf-xref.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/pdf/pdf-xref.c b/source/pdf/pdf-xref.c index ba2689b9..9c98296f 100644 --- a/source/pdf/pdf-xref.c +++ b/source/pdf/pdf-xref.c @@ -1550,6 +1550,12 @@ pdf_drop_document(fz_context *ctx, pdf_document *doc) fz_drop_document(ctx, &doc->super); } +pdf_document * +pdf_keep_document(fz_context *ctx, pdf_document *doc) +{ + return (pdf_document *)fz_keep_document(ctx, &doc->super); +} + /* * compressed object streams */ |