diff options
author | Tor Andersson <tor@ghostscript.com> | 2004-10-05 10:49:50 +0200 |
---|---|---|
committer | Tor Andersson <tor@ghostscript.com> | 2004-10-05 10:49:50 +0200 |
commit | 98e44466052e654c6b34a685fe7dbc433632aecc (patch) | |
tree | 0353dafbe63b5a2c24f847bf45c55095b09fea43 /test/pdfclean.c | |
parent | 422c3dfdb4f8d4ab61449001eff1427bf8fbff36 (diff) | |
download | mupdf-98e44466052e654c6b34a685fe7dbc433632aecc.tar.xz |
garbage collect unreferenced objects
Diffstat (limited to 'test/pdfclean.c')
-rw-r--r-- | test/pdfclean.c | 4 |
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); |