From e77235e87ef8554ba38ce4454f2f99bd62dd5824 Mon Sep 17 00:00:00 2001 From: Robert Antoni Buj i Gelonch Date: Sun, 12 Oct 2014 22:17:53 +0200 Subject: 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 Tested-by: Noel Grandin --- .../openoffice/xmerge/converter/xml/xslt/PluginFactoryImpl.java | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'xmerge/source') 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; } -- cgit v1.2.3