Mantis 7842 - remove another possible null dereference
parent
548b741130
commit
4cc954249d
|
@ -274,10 +274,8 @@ namespace OpenSim.Region.CoreModules.Scripting.LoadImageURL
|
|||
stream.Close();
|
||||
|
||||
if (response != null)
|
||||
response.Close();
|
||||
|
||||
if (
|
||||
response.StatusCode == HttpStatusCode.MovedPermanently
|
||||
{
|
||||
if (response.StatusCode == HttpStatusCode.MovedPermanently
|
||||
|| response.StatusCode == HttpStatusCode.Found
|
||||
|| response.StatusCode == HttpStatusCode.SeeOther
|
||||
|| response.StatusCode == HttpStatusCode.TemporaryRedirect)
|
||||
|
@ -296,6 +294,8 @@ namespace OpenSim.Region.CoreModules.Scripting.LoadImageURL
|
|||
new OpenSim.Region.CoreModules.Scripting.DynamicTexture.DynamicTexture(
|
||||
request.RequestUri, null, imageJ2000, newSize, false));
|
||||
}
|
||||
response.Close();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue