aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/WebUtil.cs
diff options
context:
space:
mode:
authorOren Hurvitz2013-12-19 14:08:46 +0200
committerJustin Clark-Casey (justincc)2014-01-31 00:44:22 +0000
commitb8e22f02e79e84d29e65a46751d68235f93aa8e8 (patch)
treee8b13e3f664cef71fc593e13e025bee95c985c86 /OpenSim/Framework/WebUtil.cs
parentMade error messages more consistent (diff)
downloadopensim-SC_OLD-b8e22f02e79e84d29e65a46751d68235f93aa8e8.zip
opensim-SC_OLD-b8e22f02e79e84d29e65a46751d68235f93aa8e8.tar.gz
opensim-SC_OLD-b8e22f02e79e84d29e65a46751d68235f93aa8e8.tar.bz2
opensim-SC_OLD-b8e22f02e79e84d29e65a46751d68235f93aa8e8.tar.xz
Make sure Web streams are disposed after use
Diffstat (limited to 'OpenSim/Framework/WebUtil.cs')
-rw-r--r--OpenSim/Framework/WebUtil.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/OpenSim/Framework/WebUtil.cs b/OpenSim/Framework/WebUtil.cs
index bcf6af8..54a6c0c 100644
--- a/OpenSim/Framework/WebUtil.cs
+++ b/OpenSim/Framework/WebUtil.cs
@@ -1030,7 +1030,7 @@ namespace OpenSim.Framework
1030 finally 1030 finally
1031 { 1031 {
1032 if (requestStream != null) 1032 if (requestStream != null)
1033 requestStream.Close(); 1033 requestStream.Dispose();
1034 1034
1035 // capture how much time was spent writing 1035 // capture how much time was spent writing
1036 tickdata = Util.EnvironmentTickCountSubtract(tickstart); 1036 tickdata = Util.EnvironmentTickCountSubtract(tickstart);
@@ -1183,7 +1183,7 @@ namespace OpenSim.Framework
1183 finally 1183 finally
1184 { 1184 {
1185 if (requestStream != null) 1185 if (requestStream != null)
1186 requestStream.Close(); 1186 requestStream.Dispose();
1187 1187
1188 // capture how much time was spent writing 1188 // capture how much time was spent writing
1189 tickdata = Util.EnvironmentTickCountSubtract(tickstart); 1189 tickdata = Util.EnvironmentTickCountSubtract(tickstart);
@@ -1268,4 +1268,4 @@ namespace OpenSim.Framework
1268 return deserial; 1268 return deserial;
1269 } 1269 }
1270 } 1270 }
1271} \ No newline at end of file 1271}