From f0714755e2fa8b06425907c2cf189abd3a1b7119 Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Fri, 22 Oct 2010 15:42:21 +0200 Subject: Memory leaks around g_value_set_string --- calendar/gui/e-alarm-list.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'calendar/gui') diff --git a/calendar/gui/e-alarm-list.c b/calendar/gui/e-alarm-list.c index 2e6a12e880..48b55bbc02 100644 --- a/calendar/gui/e-alarm-list.c +++ b/calendar/gui/e-alarm-list.c @@ -556,7 +556,7 @@ e_alarm_list_get_value (GtkTreeModel *tree_model, EAlarmList *alarm_list = E_ALARM_LIST (tree_model); ECalComponentAlarm *alarm; GList *l; - const gchar *str; + gchar *str; g_return_if_fail (E_IS_ALARM_LIST (tree_model)); g_return_if_fail (column < E_ALARM_LIST_NUM_COLUMNS); @@ -568,7 +568,7 @@ e_alarm_list_get_value (GtkTreeModel *tree_model, if (!alarm_list->list) return; - l = iter->user_data; + l = iter->user_data; alarm = l->data; if (!alarm) @@ -578,6 +578,7 @@ e_alarm_list_get_value (GtkTreeModel *tree_model, case E_ALARM_LIST_COLUMN_DESCRIPTION: str = get_alarm_string (alarm); g_value_set_string (value, str); + g_free (str); break; } } -- cgit v1.2.3