aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Server/Handlers/Map/MapRemoveServerConnector.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Server/Handlers/Map/MapRemoveServerConnector.cs')
-rw-r--r--OpenSim/Server/Handlers/Map/MapRemoveServerConnector.cs15
1 files changed, 9 insertions, 6 deletions
diff --git a/OpenSim/Server/Handlers/Map/MapRemoveServerConnector.cs b/OpenSim/Server/Handlers/Map/MapRemoveServerConnector.cs
index f292b95..ffd8ef6 100644
--- a/OpenSim/Server/Handlers/Map/MapRemoveServerConnector.cs
+++ b/OpenSim/Server/Handlers/Map/MapRemoveServerConnector.cs
@@ -215,13 +215,16 @@ namespace OpenSim.Server.Handlers.MapImage
215 215
216 private byte[] DocToBytes(XmlDocument doc) 216 private byte[] DocToBytes(XmlDocument doc)
217 { 217 {
218 MemoryStream ms = new MemoryStream(); 218 using(MemoryStream ms = new MemoryStream())
219 XmlTextWriter xw = new XmlTextWriter(ms, null); 219 {
220 xw.Formatting = Formatting.Indented; 220 using(XmlTextWriter xw = new XmlTextWriter(ms,null))
221 doc.WriteTo(xw); 221 {
222 xw.Flush(); 222 xw.Formatting = Formatting.Indented;
223 223 doc.WriteTo(xw);
224 xw.Flush();
225 }
224 return ms.ToArray(); 226 return ms.ToArray();
227 }
225 } 228 }
226 229
227 private System.Net.IPAddress GetCallerIP(IOSHttpRequest request) 230 private System.Net.IPAddress GetCallerIP(IOSHttpRequest request)