Make sure Web streams are disposed after use

This commit is contained in:
Oren Hurvitz
2013-12-19 14:08:46 +02:00
committed by Justin Clark-Casey (justincc)
parent 1380b37d71
commit b8e22f02e7
6 changed files with 46 additions and 54 deletions

View File

@@ -1030,7 +1030,7 @@ namespace OpenSim.Framework
finally
{
if (requestStream != null)
requestStream.Close();
requestStream.Dispose();
// capture how much time was spent writing
tickdata = Util.EnvironmentTickCountSubtract(tickstart);
@@ -1183,7 +1183,7 @@ namespace OpenSim.Framework
finally
{
if (requestStream != null)
requestStream.Close();
requestStream.Dispose();
// capture how much time was spent writing
tickdata = Util.EnvironmentTickCountSubtract(tickstart);
@@ -1268,4 +1268,4 @@ namespace OpenSim.Framework
return deserial;
}
}
}
}