aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Server/Handlers/BakedTextures/XBakes.cs6
1 files changed, 2 insertions, 4 deletions
diff --git a/OpenSim/Server/Handlers/BakedTextures/XBakes.cs b/OpenSim/Server/Handlers/BakedTextures/XBakes.cs
index d1b2e12..4e55433 100644
--- a/OpenSim/Server/Handlers/BakedTextures/XBakes.cs
+++ b/OpenSim/Server/Handlers/BakedTextures/XBakes.cs
@@ -107,11 +107,9 @@ namespace OpenSim.Server.Handlers.BakedTextures
107 File.Delete(diskFile); 107 File.Delete(diskFile);
108 108
109 byte[] data = utf8encoding.GetBytes(sdata); 109 byte[] data = utf8encoding.GetBytes(sdata);
110 FileStream fs = File.Create(diskFile);
111 110
112 fs.Write(data, 0, data.Length); 111 using (FileStream fs = File.Create(diskFile))
113 112 fs.Write(data, 0, data.Length);
114 fs.Close();
115 } 113 }
116 114
117 private void HandleDeleteBakes(string module, string[] args) 115 private void HandleDeleteBakes(string module, string[] args)