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

New commits:
commit ae22992b13ad3d9a51bcd3e2e1f187a8edd655f7
Author: Adrian Johnson <[email protected]>
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)
_______________________________________________
poppler mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/poppler

Reply via email to