CP-36392: Dispose '_webClient' when it is no longer needed

Signed-off-by: Danilo Del Busso <Danilo.Del.Busso@citrix.com>
This commit is contained in:
Danilo Del Busso 2021-09-20 09:30:11 +01:00
parent 12faf4413b
commit bb765e2b0f
No known key found for this signature in database
GPG Key ID: 55F556F9A25CB037

View File

@ -19,6 +19,7 @@
{
_webClient.DownloadFileCompleted -= webclient_DownloadFileCompleted;
_webClient.DownloadProgressChanged -= webclient_DownloadProgressChanged;
_webClient.Dispose();
}
if (components != null)