From 4afc6e2f2a877441d36c670ef58fe31360a83e63 Mon Sep 17 00:00:00 2001 From: Kjartan Maraas Date: Wed, 13 Jul 2005 10:36:15 +0000 Subject: Free the uri to the source in a few cases. Free the timezone location. 2005-07-08 Kjartan Maraas * gui/alarm-notify/alarm-notify.c: (alarm_notify_add_calendar): Free the uri to the source in a few cases. * gui/calendar-config.c: (calendar_config_get_icaltimezone): Free the timezone location. svn path=/trunk/; revision=29756 --- calendar/gui/calendar-config.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'calendar/gui/calendar-config.c') diff --git a/calendar/gui/calendar-config.c b/calendar/gui/calendar-config.c index d8d21b0f5b..aa2b565b52 100644 --- a/calendar/gui/calendar-config.c +++ b/calendar/gui/calendar-config.c @@ -195,9 +195,10 @@ calendar_config_get_icaltimezone (void) calendar_config_init (); location = calendar_config_get_timezone (); - if (location) + if (location) { zone = icaltimezone_get_builtin_timezone (location); - + g_free (location); + } if (!zone) zone = icaltimezone_get_utc_timezone (); -- cgit v1.2.3