From 33273820613ab607e93cd8252f06f7ada7d9ed61 Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Fri, 25 Jan 2008 12:38:03 +0000 Subject: ** Fix for bug #510409 2008-01-25 Milan Crha ** Fix for bug #510409 * gui/e-memos.c: (obtain_list_of_components): * gui/e-tasks.c: (obtain_list_of_components): * gui/e-calendar-table.c: (e_calendar_table_copy_clipboard): * gui/e-memo-table.c: (e_memo_table_copy_clipboard): Do not free memmory owned by libical. * gui/e-week-view.c: (e_week_view_reshape_events): Free memory before assigning NULL. svn path=/trunk/; revision=34893 --- calendar/gui/e-calendar-table.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'calendar/gui/e-calendar-table.c') diff --git a/calendar/gui/e-calendar-table.c b/calendar/gui/e-calendar-table.c index e0db8a12a0..3f39d72875 100644 --- a/calendar/gui/e-calendar-table.c +++ b/calendar/gui/e-calendar-table.c @@ -873,7 +873,9 @@ e_calendar_table_copy_clipboard (ECalendarTable *cal_table) if (!gtk_clipboard_set_with_data(clipboard, target_types, n_target_types, clipboard_get_calendar_cb, NULL, comp_str)) { - g_free (comp_str); + + /* do not free this pointer, it owns libical */ + /* g_free (comp_str); */ } else { gtk_clipboard_set_can_store (clipboard, target_types + 1, n_target_types - 1); } -- cgit v1.2.3