diff options
author | Ingo Bauersachs <ingo@jitsi.org> | 2014-11-27 15:54:05 +0100 |
---|---|---|
committer | Ingo Bauersachs <ingo@jitsi.org> | 2014-11-27 16:14:48 +0100 |
commit | bdf3b9aa26d32c087e10f5678f5860c3b5da7757 (patch) | |
tree | 2c8d0899cfe5125afd2932f07bc72d2ec3da1aac /src/net/java | |
parent | 9c140a6b57751694d3fd15d70aaccd4ddaebf7db (diff) | |
download | jitsi-bdf3b9aa26d32c087e10f5678f5860c3b5da7757.zip jitsi-bdf3b9aa26d32c087e10f5678f5860c3b5da7757.tar.gz jitsi-bdf3b9aa26d32c087e10f5678f5860c3b5da7757.tar.bz2 |
Close history documents after read
Diffstat (limited to 'src/net/java')
-rw-r--r-- | src/net/java/sip/communicator/impl/history/HistoryServiceImpl.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/net/java/sip/communicator/impl/history/HistoryServiceImpl.java b/src/net/java/sip/communicator/impl/history/HistoryServiceImpl.java index 98a010f..f108f72 100644 --- a/src/net/java/sip/communicator/impl/history/HistoryServiceImpl.java +++ b/src/net/java/sip/communicator/impl/history/HistoryServiceImpl.java @@ -214,7 +214,10 @@ public class HistoryServiceImpl protected synchronized Document parse(File file) throws SAXException, IOException { - return builder.parse(file); + FileInputStream fis = new FileInputStream(file); + Document doc = builder.parse(fis); + fis.close(); + return doc; } /** |