diff options
author | Gareth Owen <gowen@src.gnome.org> | 2004-05-28 22:56:31 +0000 |
---|---|---|
committer | Gareth Owen <gowen@src.gnome.org> | 2004-05-28 22:56:31 +0000 |
commit | c6071f8b68041d84c77b81f115ba3b6abd355a69 (patch) | |
tree | dc42078cb024ffe4cc95565399fa6b33bc4f58e6 | |
parent | 1a449f6a4a2fe0721b5bfd7c6f63aec47c743f01 (diff) |
Free buffers on deleting weather info structure. Fixes bug #14331
-rw-r--r-- | gweather/ChangeLog | 5 | ||||
-rw-r--r-- | gweather/weather.c | 8 |
2 files changed, 13 insertions, 0 deletions
diff --git a/gweather/ChangeLog b/gweather/ChangeLog index c16d85135..e9bf1a7b2 100644 --- a/gweather/ChangeLog +++ b/gweather/ChangeLog @@ -1,3 +1,8 @@ +2004-05-28 Gareth Owen <gowen72@yahoo.com> + + * weather.c: Free buffers on deleting weather info structure. + Fixes bug #143316 + 2004-05-27 Gareth Owen <gowen72@yahoo.com> * weather.c: Cancelled any outstanding gnome vfs calls when diff --git a/gweather/weather.c b/gweather/weather.c index ed9de9508..cd0b1808b 100644 --- a/gweather/weather.c +++ b/gweather/weather.c @@ -1684,6 +1684,8 @@ gboolean _weather_info_fill (GWeatherApplet *applet, WeatherInfo *info, WeatherL info->requests_pending = FALSE; info->metar_buffer = NULL; info->iwin_buffer = NULL; + info->met_buffer = NULL; + info->bom_buffer = NULL; info->location = weather_location_clone(location); } else { location = info->location; @@ -1860,6 +1862,12 @@ void weather_info_free (WeatherInfo *info) if (info->metar_buffer) g_free (info->metar_buffer); + if (info->met_buffer) + g_free (info->met_buffer); + + if (info->bom_buffer) + g_free (info->bom_buffer); + if (info->metar_handle) gnome_vfs_async_cancel (info->metar_handle); |