{
request.Content = postContent;
+ HttpResponseMessage response = null;
try
{
- var response = await this.http.SendAsync(request, HttpCompletionOption.ResponseHeadersRead)
+ response = await this.http.SendAsync(request, HttpCompletionOption.ResponseHeadersRead)
.ConfigureAwait(false);
await this.CheckStatusCode(response)
{
throw TwitterApiException.CreateFromException(ex);
}
+ finally
+ {
+ response?.Dispose();
+ }
}
}
{
Networking.WebProxyChanged -= this.Networking_WebProxyChanged;
this.http.Dispose();
+ this.httpUpload.Dispose();
this.httpStreaming.Dispose();
}
}