aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/calendar-config.c
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/gui/calendar-config.c')
-rw-r--r--calendar/gui/calendar-config.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/calendar/gui/calendar-config.c b/calendar/gui/calendar-config.c
index 2441b71010..6ec6386a79 100644
--- a/calendar/gui/calendar-config.c
+++ b/calendar/gui/calendar-config.c
@@ -228,6 +228,7 @@ calendar_config_get_icaltimezone (void)
if (!(dl_comp = icalcomponent_get_first_component (icalcomp, ICAL_XDAYLIGHT_COMPONENT))) {
+ g_free (location);
return zone;
}
@@ -245,7 +246,7 @@ calendar_config_get_icaltimezone (void)
custom_zones = g_hash_table_new (g_str_hash, g_str_equal);
} else if ((st_zone = g_hash_table_lookup (custom_zones, n_tzid))) {
g_free (n_tzid);
-
+ g_free (location);
return st_zone;
}
@@ -255,7 +256,7 @@ calendar_config_get_icaltimezone (void)
if (!s_comp) {
g_free (n_tzid);
icalcomponent_free (zone_comp);
-
+ g_free (location);
return zone;
}