diff options
author | UbitUmarov | 2016-08-22 06:06:13 +0100 |
---|---|---|
committer | UbitUmarov | 2016-08-22 06:06:13 +0100 |
commit | 27dcb01b2ef97c3d3342caa6f266410fed13caa4 (patch) | |
tree | 094d0409b971c7049ec62bd43ad26855ea633b02 | |
parent | workaround potencial memory leaks (diff) | |
download | opensim-SC_OLD-27dcb01b2ef97c3d3342caa6f266410fed13caa4.zip opensim-SC_OLD-27dcb01b2ef97c3d3342caa6f266410fed13caa4.tar.gz opensim-SC_OLD-27dcb01b2ef97c3d3342caa6f266410fed13caa4.tar.bz2 opensim-SC_OLD-27dcb01b2ef97c3d3342caa6f266410fed13caa4.tar.xz |
workaround potencial memory leak
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Services/LLLoginService/LLLoginService.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Services/LLLoginService/LLLoginService.cs b/OpenSim/Services/LLLoginService/LLLoginService.cs index 6681f1a..92b3137 100644 --- a/OpenSim/Services/LLLoginService/LLLoginService.cs +++ b/OpenSim/Services/LLLoginService/LLLoginService.cs | |||
@@ -512,8 +512,8 @@ namespace OpenSim.Services.LLLoginService | |||
512 | // | 512 | // |
513 | if (m_MessageUrl != String.Empty) | 513 | if (m_MessageUrl != String.Empty) |
514 | { | 514 | { |
515 | WebClient client = new WebClient(); | 515 | using(WebClient client = new WebClient()) |
516 | processedMessage = client.DownloadString(m_MessageUrl); | 516 | processedMessage = client.DownloadString(m_MessageUrl); |
517 | } | 517 | } |
518 | else | 518 | else |
519 | { | 519 | { |