mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 01:06:30 +08:00
In XBakes use proper disposal semantics to always close the stream on Store() no matter what
This commit is contained in:
@@ -107,11 +107,9 @@ namespace OpenSim.Server.Handlers.BakedTextures
|
||||
File.Delete(diskFile);
|
||||
|
||||
byte[] data = utf8encoding.GetBytes(sdata);
|
||||
FileStream fs = File.Create(diskFile);
|
||||
|
||||
fs.Write(data, 0, data.Length);
|
||||
|
||||
fs.Close();
|
||||
using (FileStream fs = File.Create(diskFile))
|
||||
fs.Write(data, 0, data.Length);
|
||||
}
|
||||
|
||||
private void HandleDeleteBakes(string module, string[] args)
|
||||
|
||||
Reference in New Issue
Block a user