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
1 changed files with 3 additions and 0 deletions

View 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();
}