diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2013-10-17 18:15:33 -0500 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2013-10-17 18:15:33 -0500 |
commit | 1a898e4eada6f50bd6f3e3b227d1ab0e143ec06d (patch) | |
tree | 0807b5e0863dba8ea644f86d68548276f8027860 /src/service.c | |
parent | 758a4880f645242f1c7753990dc46f880a7e9de8 (diff) | |
download | ayatana-indicator-datetime-1a898e4eada6f50bd6f3e3b227d1ab0e143ec06d.tar.gz ayatana-indicator-datetime-1a898e4eada6f50bd6f3e3b227d1ab0e143ec06d.tar.bz2 ayatana-indicator-datetime-1a898e4eada6f50bd6f3e3b227d1ab0e143ec06d.zip |
cache the timezone strv; lazy-rebuilding it when needed
Diffstat (limited to 'src/service.c')
-rw-r--r-- | src/service.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/service.c b/src/service.c index f2b0b34..079456c 100644 --- a/src/service.c +++ b/src/service.c @@ -1168,7 +1168,7 @@ create_locations_section (IndicatorDatetimeService * self) GSList * l; GSList * locations = NULL; gchar ** user_locations; - gchar ** detected_timezones; + const gchar ** detected_timezones; priv_t * p = self->priv; GDateTime * now = indicator_datetime_service_get_localtime (self); @@ -1185,7 +1185,6 @@ create_locations_section (IndicatorDatetimeService * self) gchar * name = get_current_zone_name (tz, p->settings); locations = locations_add (locations, tz, name, TRUE); } - g_strfreev (detected_timezones); /* maybe add the user-specified locations */ user_locations = g_settings_get_strv (p->settings, SETTINGS_LOCATIONS_S); |