diff options
author | Chenthill Palanisamy <pchenthill@novell.com> | 2008-02-25 02:34:05 +0800 |
---|---|---|
committer | Chenthill Palanisamy <pchen@src.gnome.org> | 2008-02-25 02:34:05 +0800 |
commit | d29b2af2244f1787c85937dc17e4fe0c7eaa807b (patch) | |
tree | b3dce940809ddb7eccc1f21f4c551fc4b8f78d91 /calendar/gui/e-cal-model.c | |
parent | b29522c36964307da284764c2be47d227af80600 (diff) | |
download | gsoc2013-evolution-d29b2af2244f1787c85937dc17e4fe0c7eaa807b.tar.gz gsoc2013-evolution-d29b2af2244f1787c85937dc17e4fe0c7eaa807b.tar.zst gsoc2013-evolution-d29b2af2244f1787c85937dc17e4fe0c7eaa807b.zip |
Fixes#516408
2008-02-24 Chenthill Palanisamy <pchenthill@novell.com>
Fixes#516408
* gui/dialogs/e-send-options-utils.c
(e_sendoptions_utils_fill_component):
* gui/e-cal-model.c (search_by_id_and_client):
* gui/e-calendar-table.c (copy_row_cb),
(e_calendar_table_copy_clipboard):
* gui/e-calendar-view.c (e_calendar_view_copy_clipboard),
(icalcomp_contains_category):
* gui/e-day-view.c (model_rows_deleted_cb),
(e_day_view_find_event_from_uid),
(e_day_view_reshape_day_events),
(e_day_view_on_drag_data_get):
* gui/e-itip-control.c (update_item):
* gui/e-memo-table.c (copy_row_cb),
* (e_memo_table_copy_clipboard):
* gui/e-memos.c (obtain_list_of_components):
* gui/e-tasks.c (obtain_list_of_components):
* gui/e-week-view.c (model_rows_deleted_cb),
(e_week_view_reshape_events), (e_week_view_find_event_from_uid):
* gui/gnome-cal.c (gnome_calendar_purge):
* gui/itip-utils.c (comp_limit_attendees), (itip_send_comp),
(reply_to_calendar_comp), (itip_publish_comp): Free the memory
returned by libical
svn path=/trunk/; revision=35081
Diffstat (limited to 'calendar/gui/e-cal-model.c')
-rw-r--r-- | calendar/gui/e-cal-model.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/calendar/gui/e-cal-model.c b/calendar/gui/e-cal-model.c index 19fb146d3e..87c826a226 100644 --- a/calendar/gui/e-cal-model.c +++ b/calendar/gui/e-cal-model.c @@ -1297,7 +1297,8 @@ search_by_id_and_client (ECalModelPrivate *priv, ECal *client, const ECalCompone ECalModelComponent *comp_data = g_ptr_array_index (priv->objects, i); if (comp_data) { - const char *uid, *rid; + const char *uid; + char *rid = NULL; gboolean has_rid = (id->rid && *id->rid); uid = icalcomponent_get_uid (comp_data->icalcomp); @@ -1306,11 +1307,15 @@ search_by_id_and_client (ECalModelPrivate *priv, ECal *client, const ECalCompone if (uid && *uid) { if ((!client || comp_data->client == client) && !strcmp (id->uid, uid)) { if (has_rid) { - if (!(rid && *rid && !strcmp (rid, id->rid))) + if (!(rid && *rid && !strcmp (rid, id->rid))) { + g_free (rid); continue; + } } + g_free (rid); return comp_data; } + g_free (rid); } } } |