summaryrefslogtreecommitdiff
path: root/test/pdfclean.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/pdfclean.c')
-rw-r--r--test/pdfclean.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/pdfclean.c b/test/pdfclean.c
index 37d9de0d..3a111a92 100644
--- a/test/pdfclean.c
+++ b/test/pdfclean.c
@@ -122,12 +122,12 @@ int main(int argc, char **argv)
if (error) fz_abort(error);
}
- if (dogc)
- pdf_garbagecollect(xref);
-
if (doexpand)
expandstreams(xref);
+ if (dogc)
+ pdf_garbagecollect(xref);
+
error = pdf_savepdf(xref, outfile);
if (error)
fz_abort(error);