Mathieu Stempell created ODFTOOLKIT-468:
-------------------------------------------

             Summary: OdfPackage file insertion got unclosed FileInputStream
                 Key: ODFTOOLKIT-468
                 URL: https://issues.apache.org/jira/browse/ODFTOOLKIT-468
             Project: ODF Toolkit
          Issue Type: Bug
          Components: odfdom
            Reporter: Mathieu Stempell


Any inserted file still got a handle after using {{OdfPackage.insert(URI 
sourceURI, String internalPath, String mediaType)}} (only an explicit 
System.gc() call could free the file).
Also, of course, this can also lead to memory leakage.

I pushed a fix (closing the instancied InputStream) as pull request here: 
https://github.com/apache/odftoolkit/pull/2



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to