[gnome-initial-setup/shell/4765: 318/362] location: plug memory leak
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-initial-setup/shell/4765: 318/362] location: plug memory leak
- Date: Thu, 19 Mar 2015 01:47:49 +0000 (UTC)
commit 804c6ee597ff6ff8bb031fbac7b4c592c37a7ce1
Author: Cosimo Cecchi <cosimo endlesm com>
Date: Tue Dec 30 16:05:26 2014 +0800
location: plug memory leak
gnome-initial-setup/pages/location/weather-tz.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/gnome-initial-setup/pages/location/weather-tz.c b/gnome-initial-setup/pages/location/weather-tz.c
index 2666846..73e7675 100644
--- a/gnome-initial-setup/pages/location/weather-tz.c
+++ b/gnome-initial-setup/pages/location/weather-tz.c
@@ -78,9 +78,14 @@ load_timezones (GList *cities)
if (!gweather_location_has_coords (l->data) ||
!weather_location_has_timezone (l->data)) {
+ gchar *city_name;
+
+ city_name = gweather_location_get_city_name (l->data);
g_debug ("Incomplete GWeather location entry: (%s) %s",
gweather_location_get_country (l->data),
- gweather_location_get_city_name (l->data));
+ city_name);
+ g_free (city_name);
+
continue;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]