Skip to content

Commit 99c5a6c

Browse files
committed
Add: WebClient despose method
1 parent e915274 commit 99c5a6c

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

EarthLiveSharp.sln

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ EndProject
88
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UnitTest", "UnitTest\UnitTest.csproj", "{F11F6C41-09F8-4D3A-8BA5-30619A7D2883}"
99
EndProject
1010
Global
11+
GlobalSection(Performance) = preSolution
12+
HasPerformanceSessions = true
13+
EndGlobalSection
1114
GlobalSection(SolutionConfigurationPlatforms) = preSolution
1215
Debug|Any CPU = Debug|Any CPU
1316
Release|Any CPU = Release|Any CPU

EarthLiveSharp/Program.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,10 @@ private int SaveImage()
160160
Trace.WriteLine(string.Format("[url]{0} [image_path]{1}", url, image_path));
161161
return -1;
162162
}
163+
finally
164+
{
165+
client.Dispose();
166+
}
163167
}
164168

165169
private void JoinImage()

0 commit comments

Comments
 (0)