[sip-comm-cvs] CVS update: /sip-communicator/src/net/java/sip/communicator/impl/contactlist/MclStorageManager.java

emcho at dev.java.net emcho at dev.java.net
Tue Apr 17 14:12:40 CEST 2007


User: emcho   
Date: 2007-04-17 12:12:40+0000
Log:
 close output streams after writing xml files.

File Changes:

Directory: /sip-communicator/src/net/java/sip/communicator/impl/contactlist/
============================================================================

File [changed]: MclStorageManager.java
Url: https://sip-communicator.dev.java.net/source/browse/sip-communicator/src/net/java/sip/communicator/impl/contactlist/MclStorageManager.java?r1=1.17&r2=1.18
Delta lines:  +3 -1
-------------------
--- MclStorageManager.java	2007-03-10 14:34:00+0000	1.17
+++ MclStorageManager.java	2007-04-17 12:12:38+0000	1.18
@@ -350,8 +350,10 @@
                      + isModified);
         if(isStarted())
         {
+            OutputStream stream = new FileOutputStream(contactlistFile);
             XMLUtils.indentedWriteXML(contactListDocument
-                                      , new FileOutputStream(contactlistFile));
+                                      , stream);
+            stream.close();
         }
     }
 




---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe at sip-communicator.dev.java.net
For additional commands, e-mail: cvs-help at sip-communicator.dev.java.net





More information about the commits mailing list