diff options
author | Noel Grandin <noel@peralex.com> | 2013-05-03 15:18:08 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-05-06 11:45:56 +0200 |
commit | 402c8f5f1efd053cc69556d63999955b3af4f41d (patch) | |
tree | 6f5dd611fa39962511feeaf1802d3776217f84fe /xmerge | |
parent | 7cba598a7ddcf02771ed31c8d8fce6f7e02ef715 (diff) |
Java cleanup, close file handles when done with them
Change-Id: I79e6e0b8f53ae6f232c34aa8e833853d2ec24cf0
Diffstat (limited to 'xmerge')
-rw-r--r-- | xmerge/source/xmerge/java/org/openoffice/xmerge/util/ActiveSyncDriver.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/xmerge/source/xmerge/java/org/openoffice/xmerge/util/ActiveSyncDriver.java b/xmerge/source/xmerge/java/org/openoffice/xmerge/util/ActiveSyncDriver.java index 42ce0a9a427c..a06dca7b3cd7 100644 --- a/xmerge/source/xmerge/java/org/openoffice/xmerge/util/ActiveSyncDriver.java +++ b/xmerge/source/xmerge/java/org/openoffice/xmerge/util/ActiveSyncDriver.java @@ -113,16 +113,19 @@ public class ActiveSyncDriver { dataOut = conv.convert(); } catch (Exception e) { + fos.close(); return false; } if (dataOut == null) { + fos.close(); return false; } // Get the document and write it out. Document doc = (Document)dataOut.getDocumentEnumeration().next(); if (doc == null) { + fos.close(); return false; } |