diff options
author | Robert Antoni Buj i Gelonch <robert.buj@gmail.com> | 2014-10-12 22:17:53 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2014-10-13 06:56:20 +0000 |
commit | e77235e87ef8554ba38ce4454f2f99bd62dd5824 (patch) | |
tree | 394d619e79996a5c28beb8742728498896511c64 /xmerge/source | |
parent | 3c27e31628c49b927d2026176cac5a085bf0fe39 (diff) |
xmerge: ensure that the stream is cleaned up before the method returns
Change-Id: I377ae1a7b71c207313ad3468a51b1ab06b9fffd5
Reviewed-on: https://gerrit.libreoffice.org/11939
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'xmerge/source')
-rw-r--r-- | xmerge/source/xmerge/java/org/openoffice/xmerge/converter/xml/xslt/PluginFactoryImpl.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/xmerge/source/xmerge/java/org/openoffice/xmerge/converter/xml/xslt/PluginFactoryImpl.java b/xmerge/source/xmerge/java/org/openoffice/xmerge/converter/xml/xslt/PluginFactoryImpl.java index c89fb72329aa..cae4e7667f53 100644 --- a/xmerge/source/xmerge/java/org/openoffice/xmerge/converter/xml/xslt/PluginFactoryImpl.java +++ b/xmerge/source/xmerge/java/org/openoffice/xmerge/converter/xml/xslt/PluginFactoryImpl.java @@ -147,6 +147,13 @@ public final class PluginFactoryImpl extends PluginFactory } catch (Exception e) { // It is okay for the property file to not exist. + } finally { + try { + if (is != null) { + is.close(); + } + } catch (IOException ex) { + } } return ext; } |