poppler/PSOutputDev.cc |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit 671df5dad0732882ceb9e053c3f947dfe0597f3d
Author: Lu Wang <[email protected]>
Date:   Wed Sep 26 00:52:32 2012 +0200

    Don't close the stream if it's not a stream

diff --git a/poppler/PSOutputDev.cc b/poppler/PSOutputDev.cc
index f414897..e4c925c 100644
--- a/poppler/PSOutputDev.cc
+++ b/poppler/PSOutputDev.cc
@@ -27,6 +27,7 @@
 // Copyright (C) 2009 Kovid Goyal <[email protected]>
 // Copyright (C) 2009-2011 Adrian Johnson <[email protected]>
 // Copyright (C) 2012 Fabio D'Urso <[email protected]>
+// Copyright (C) 2012 Lu Wang <[email protected]>
 //
 // To see a description of the changes please see the Changelog file that
 // came with your tarball or type make ChangeLog if you are building from git
@@ -2151,7 +2152,8 @@ void PSOutputDev::setupEmbeddedType1Font(Ref *id, 
GooString *psName) {
   writePS("%%EndResource\n");
 
  err1:
-  strObj.streamClose();
+  if (strObj.isStream())
+    strObj.streamClose();
   strObj.free();
 }
 
_______________________________________________
poppler mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/poppler

Reply via email to