[poppler] Branch 'poppler-0.18' - utils/pdftocairo.cc

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


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

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

    close the file or flush stdout
    (cherry picked from commit ab8616dcb637ac1aeb4d5f142c3c4bff9aecd041)

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