diff options
author | Milan Crha <mcrha@redhat.com> | 2010-10-22 21:42:21 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2010-10-22 21:42:21 +0800 |
commit | f0714755e2fa8b06425907c2cf189abd3a1b7119 (patch) | |
tree | 0ac6ed485b978703a1dd6674ee427486556a8541 /calendar/gui | |
parent | 2e0231be722d30edaa0b2f0353d110b1b56cf445 (diff) | |
download | gsoc2013-evolution-f0714755e2fa8b06425907c2cf189abd3a1b7119.tar gsoc2013-evolution-f0714755e2fa8b06425907c2cf189abd3a1b7119.tar.gz gsoc2013-evolution-f0714755e2fa8b06425907c2cf189abd3a1b7119.tar.bz2 gsoc2013-evolution-f0714755e2fa8b06425907c2cf189abd3a1b7119.tar.lz gsoc2013-evolution-f0714755e2fa8b06425907c2cf189abd3a1b7119.tar.xz gsoc2013-evolution-f0714755e2fa8b06425907c2cf189abd3a1b7119.tar.zst gsoc2013-evolution-f0714755e2fa8b06425907c2cf189abd3a1b7119.zip |
Memory leaks around g_value_set_string
Diffstat (limited to 'calendar/gui')
-rw-r--r-- | calendar/gui/e-alarm-list.c | 5 |
1 files changed, 3 insertions, 2 deletions
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; } } |