summaryrefslogtreecommitdiff
path: root/source/pdf
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2016-03-01 15:30:07 +0100
committerTor Andersson <tor.andersson@artifex.com>2016-03-01 21:57:41 +0100
commited08eb1f0e4d3fd49181343f5cd3d63f455cbe51 (patch)
treec8dffaaf86a2dcd732ba884e4580c65a65474af6 /source/pdf
parenta59f0649377db57cf7874cfd9eb6943a9f9b58d5 (diff)
downloadmupdf-ed08eb1f0e4d3fd49181343f5cd3d63f455cbe51.tar.xz
Rename pdf_close_document to pdf_drop_document.
Diffstat (limited to 'source/pdf')
-rw-r--r--source/pdf/pdf-clean-file.c2
-rw-r--r--source/pdf/pdf-xref.c8
2 files changed, 8 insertions, 2 deletions
diff --git a/source/pdf/pdf-clean-file.c b/source/pdf/pdf-clean-file.c
index b766af89..587f70b6 100644
--- a/source/pdf/pdf-clean-file.c
+++ b/source/pdf/pdf-clean-file.c
@@ -355,7 +355,7 @@ void pdf_clean_file(fz_context *ctx, char *infile, char *outfile, char *password
}
fz_always(ctx)
{
- pdf_close_document(ctx, glo.doc);
+ pdf_drop_document(ctx, glo.doc);
}
fz_catch(ctx)
{
diff --git a/source/pdf/pdf-xref.c b/source/pdf/pdf-xref.c
index 02e68530..4456c741 100644
--- a/source/pdf/pdf-xref.c
+++ b/source/pdf/pdf-xref.c
@@ -1573,7 +1573,7 @@ pdf_init_document(fz_context *ctx, pdf_document *doc)
fz_catch(ctx) { }
}
-void
+static void
pdf_close_document(fz_context *ctx, pdf_document *doc)
{
int i;
@@ -1632,6 +1632,12 @@ pdf_close_document(fz_context *ctx, pdf_document *doc)
}
void
+pdf_drop_document(fz_context *ctx, pdf_document *doc)
+{
+ fz_drop_document(ctx, &doc->super);
+}
+
+void
pdf_print_xref(fz_context *ctx, pdf_document *doc)
{
int i;