]> source.dussan.org Git - poi.git/commitdiff
Add missing revert() in OPCPackage to close Zip-streams always
authorDominik Stadler <centic@apache.org>
Tue, 1 Jan 2019 20:10:58 +0000 (20:10 +0000)
committerDominik Stadler <centic@apache.org>
Tue, 1 Jan 2019 20:10:58 +0000 (20:10 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1850115 13f79535-47bb-0310-9956-ffa450edef68

src/ooxml/java/org/apache/poi/openxml4j/opc/OPCPackage.java

index 9eaa7c3eae8f9f647d4de25047c50dfbf7bf789f..f055f931dcefcfa4ac46d86cf8e79889cd2b1f84 100644 (file)
@@ -455,6 +455,9 @@ public abstract class OPCPackage implements RelationshipSource, Closeable {
                        output.close();
                }
 
+               // ensure all held resources are freed
+        revert();
+
                // Clear
                this.contentTypeManager.clearAll();
        }