pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1668469 - /pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/NonSequentialPDFParser.java
Date Sun, 22 Mar 2015 19:59:30 GMT
Author: tilman
Date: Sun Mar 22 19:59:30 2015
New Revision: 1668469

URL: http://svn.apache.org/r1668469
Log:
PDFBOX-2723: close open stream, as suggested by Pascal Essiembre

Modified:
    pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/NonSequentialPDFParser.java

Modified: pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/NonSequentialPDFParser.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/NonSequentialPDFParser.java?rev=1668469&r1=1668468&r2=1668469&view=diff
==============================================================================
--- pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/NonSequentialPDFParser.java
(original)
+++ pdfbox/branches/1.8/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/NonSequentialPDFParser.java
Sun Mar 22 19:59:30 2015
@@ -623,6 +623,7 @@ public class NonSequentialPDFParser exte
         COSDictionary dict = parseCOSDictionary();
         COSStream xrefStream = parseCOSStream(dict, getDocument().getScratchFile());
         parseXrefStream(xrefStream, (int) objByteOffset,isStandalone);
+        xrefStream.close();
         return dict.getLong(COSName.PREV);
     }
 



Mime
View raw message