Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
odfdom-java-0.8.11-incubating
Description
Any inserted file still got a handle after using OdfPackage.insert(URI sourceURI, String internalPath, String mediaType), as opened InputStream there is never closed (only an explicit System.gc() call could free the file). This can also lead to memory leakage of course.
I pushed a fix (closing the instancied InputStream) as pull request here: https://github.com/apache/odftoolkit/pull/2