aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-week-view.c
diff options
context:
space:
mode:
authorChenthill Palanisamy <pchenthill@novell.com>2008-02-25 02:34:05 +0800
committerChenthill Palanisamy <pchen@src.gnome.org>2008-02-25 02:34:05 +0800
commitd29b2af2244f1787c85937dc17e4fe0c7eaa807b (patch)
treeb3dce940809ddb7eccc1f21f4c551fc4b8f78d91 /calendar/gui/e-week-view.c
parentb29522c36964307da284764c2be47d227af80600 (diff)
downloadgsoc2013-evolution-d29b2af2244f1787c85937dc17e4fe0c7eaa807b.tar
gsoc2013-evolution-d29b2af2244f1787c85937dc17e4fe0c7eaa807b.tar.gz
gsoc2013-evolution-d29b2af2244f1787c85937dc17e4fe0c7eaa807b.tar.bz2
gsoc2013-evolution-d29b2af2244f1787c85937dc17e4fe0c7eaa807b.tar.lz
gsoc2013-evolution-d29b2af2244f1787c85937dc17e4fe0c7eaa807b.tar.xz
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-week-view.c')
-rw-r--r--calendar/gui/e-week-view.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/calendar/gui/e-week-view.c b/calendar/gui/e-week-view.c
index 6dc8d0e73d..07d5b7b8eb 100644
--- a/calendar/gui/e-week-view.c
+++ b/calendar/gui/e-week-view.c
@@ -396,7 +396,8 @@ model_rows_deleted_cb (ETableModel *etm, int row, int count, gpointer user_data)
for (i = row + count; i > row; i--) {
gint event_num;
- const char *uid, *rid = NULL;
+ const char *uid;
+ char *rid = NULL;
ECalModelComponent *comp_data;
comp_data = e_cal_model_get_component_at (E_CAL_MODEL (etm), i - 1);
@@ -414,6 +415,7 @@ model_rows_deleted_cb (ETableModel *etm, int row, int count, gpointer user_data)
if (e_week_view_find_event_from_uid (week_view, comp_data->client, uid, rid, &event_num))
e_week_view_remove_event_cb (week_view, event_num, NULL);
+ g_free (rid);
}
gtk_widget_queue_draw (week_view->main_canvas);
@@ -2535,6 +2537,7 @@ e_week_view_reshape_events (EWeekView *week_view)
g_free (week_view->last_edited_comp_string);
week_view->last_edited_comp_string = NULL;
}
+ g_free (current_comp_string);
}
}
@@ -3663,7 +3666,8 @@ e_week_view_find_event_from_uid (EWeekView *week_view,
num_events = week_view->events->len;
for (event_num = 0; event_num < num_events; event_num++) {
- const char *u, *r;
+ const char *u;
+ char *r = NULL;
event = &g_array_index (week_view->events, EWeekViewEvent,
event_num);
@@ -3677,8 +3681,11 @@ e_week_view_find_event_from_uid (EWeekView *week_view,
r = icaltime_as_ical_string (icalcomponent_get_recurrenceid (event->comp_data->icalcomp));
if (!r || !*r)
continue;
- if (strcmp (rid, r) != 0)
+ if (strcmp (rid, r) != 0) {
+ g_free (r);
continue;
+ }
+ g_free (r);
}
*event_num_return = event_num;