Add missing revert() in OPCPackage to close Zip-streams always

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1850115 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Dominik Stadler 2019-01-01 20:10:58 +00:00
parent fa24471916
commit 59a7919af6

View File

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