poppler/CairoOutputDev.cc | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit b21461e91ed671ef29fd3cf4780fda44f82a0679
Author: Adrian Johnson <[email protected]>
Date: Fri Mar 5 15:14:08 2010 +0100
[cairo] Close image stream before resetting it again
diff --git a/poppler/CairoOutputDev.cc b/poppler/CairoOutputDev.cc
index 5cad4e7..f5924ea 100644
--- a/poppler/CairoOutputDev.cc
+++ b/poppler/CairoOutputDev.cc
@@ -2191,6 +2191,7 @@ GBool CairoOutputDev::getStreamData (Stream *str, char
**buffer, int *length)
char *strBuffer;
len = 0;
+ str->close();
str->reset();
while (str->getChar() != EOF) len++;
if (len == 0)
@@ -2198,6 +2199,7 @@ GBool CairoOutputDev::getStreamData (Stream *str, char
**buffer, int *length)
strBuffer = (char *)gmalloc (len);
+ str->close();
str->reset();
for (i = 0; i < len; ++i)
strBuffer[i] = str->getChar();
_______________________________________________
poppler mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/poppler