diff options
Diffstat (limited to 'OpenSim/Server/Handlers/BakedTextures/XBakesPostHandler.cs')
-rw-r--r-- | OpenSim/Server/Handlers/BakedTextures/XBakesPostHandler.cs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/OpenSim/Server/Handlers/BakedTextures/XBakesPostHandler.cs b/OpenSim/Server/Handlers/BakedTextures/XBakesPostHandler.cs index 24f63d9..d16000d 100644 --- a/OpenSim/Server/Handlers/BakedTextures/XBakesPostHandler.cs +++ b/OpenSim/Server/Handlers/BakedTextures/XBakesPostHandler.cs | |||
@@ -65,10 +65,8 @@ namespace OpenSim.Server.Handlers.BakedTextures | |||
65 | return new byte[0]; | 65 | return new byte[0]; |
66 | } | 66 | } |
67 | 67 | ||
68 | StreamReader sr = new StreamReader(request); | 68 | using(StreamReader sr = new StreamReader(request)) |
69 | 69 | m_BakesService.Store(p[0],sr.ReadToEnd()); | |
70 | m_BakesService.Store(p[0], sr.ReadToEnd()); | ||
71 | sr.Close(); | ||
72 | 70 | ||
73 | return new byte[0]; | 71 | return new byte[0]; |
74 | } | 72 | } |