mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 17:55:48 +08:00
workaround potencial memory leak
This commit is contained in:
@@ -512,8 +512,8 @@ namespace OpenSim.Services.LLLoginService
|
|||||||
//
|
//
|
||||||
if (m_MessageUrl != String.Empty)
|
if (m_MessageUrl != String.Empty)
|
||||||
{
|
{
|
||||||
WebClient client = new WebClient();
|
using(WebClient client = new WebClient())
|
||||||
processedMessage = client.DownloadString(m_MessageUrl);
|
processedMessage = client.DownloadString(m_MessageUrl);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user