close output streams after writing xml files.

cusax-fix
Emil Ivov 19 years ago
parent cffee3bb08
commit 7dc7780b3a

@ -517,8 +517,10 @@ private void storeConfiguration(File file)
newlyAddedProperties);
//write the file.
OutputStream stream = new FileOutputStream(getConfigurationFile());
XMLUtils.indentedWriteXML(
propertiesDocument, new FileOutputStream(getConfigurationFile()));
propertiesDocument, stream);
stream.close();
}
/**

@ -350,8 +350,10 @@ private void storeContactList0() throws IOException
+ isModified);
if(isStarted())
{
OutputStream stream = new FileOutputStream(contactlistFile);
XMLUtils.indentedWriteXML(contactListDocument
, new FileOutputStream(contactlistFile));
, stream);
stream.close();
}
}

Loading…
Cancel
Save