summaryrefslogtreecommitdiff
path: root/test/pdfclean.c
diff options
context:
space:
mode:
authorTor Andersson <tor@ghostscript.com>2004-10-05 10:49:50 +0200
committerTor Andersson <tor@ghostscript.com>2004-10-05 10:49:50 +0200
commit98e44466052e654c6b34a685fe7dbc433632aecc (patch)
tree0353dafbe63b5a2c24f847bf45c55095b09fea43 /test/pdfclean.c
parent422c3dfdb4f8d4ab61449001eff1427bf8fbff36 (diff)
downloadmupdf-98e44466052e654c6b34a685fe7dbc433632aecc.tar.xz
garbage collect unreferenced objects
Diffstat (limited to 'test/pdfclean.c')
-rw-r--r--test/pdfclean.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/pdfclean.c b/test/pdfclean.c
index 7eb72cda..37d9de0d 100644
--- a/test/pdfclean.c
+++ b/test/pdfclean.c
@@ -122,10 +122,12 @@ int main(int argc, char **argv)
if (error) fz_abort(error);
}
+ if (dogc)
+ pdf_garbagecollect(xref);
+
if (doexpand)
expandstreams(xref);
-printf("saving %s...\n", outfile);
error = pdf_savepdf(xref, outfile);
if (error)
fz_abort(error);