[poppler] utils/pdftocairo.cc

Albert Astals Cid aacid at kemper.freedesktop.org
Thu Oct 6 05:21:42 PDT 2011


 utils/pdftocairo.cc |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit ab8616dcb637ac1aeb4d5f142c3c4bff9aecd041
Author: Adrian Johnson <ajohnson at redneon.com>
Date:   Thu Oct 6 14:21:10 2011 +0200

    close the file or flush stdout

diff --git a/utils/pdftocairo.cc b/utils/pdftocairo.cc
index f86b10f..fb3ca30 100644
--- a/utils/pdftocairo.cc
+++ b/utils/pdftocairo.cc
@@ -336,6 +336,8 @@ void writePageImage(GooString *filename)
   gfree(row);
   writer->close();
   delete writer;
+  if (file == stdout) fflush(file);
+  else fclose(file);
 }
 
 static void getCropSize(double page_w, double page_h, double *width, double *height)


More information about the poppler mailing list