From 8269dba18724f6e87eb73cc0ba06885c194e62f3 Mon Sep 17 00:00:00 2001 From: LukePulverenti Luke Pulverenti luke pulverenti Date: Sun, 16 Sep 2012 19:11:55 -0400 Subject: [PATCH] Made WeatherClient disposable --- MediaBrowser.Controller/Weather/WeatherClient.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/MediaBrowser.Controller/Weather/WeatherClient.cs b/MediaBrowser.Controller/Weather/WeatherClient.cs index c6692b87b..7226dccf0 100644 --- a/MediaBrowser.Controller/Weather/WeatherClient.cs +++ b/MediaBrowser.Controller/Weather/WeatherClient.cs @@ -15,7 +15,7 @@ namespace MediaBrowser.Controller.Weather /// Based on http://www.worldweatheronline.com/free-weather-feed.aspx /// The classes in this file are a reproduction of the json output, which will then be converted to our weather model classes /// - public class WeatherClient + public class WeatherClient : IDisposable { private HttpClient HttpClient { get; set; } @@ -73,6 +73,11 @@ namespace MediaBrowser.Controller.Weather return info; } + + public void Dispose() + { + HttpClient.Dispose(); + } } class WeatherResult