From a5f55d492ee468b7d9be7ab979d4bf7a0c1046c6 Mon Sep 17 00:00:00 2001 From: Rodrigo Moya Date: Mon, 27 Dec 2004 12:37:39 +0000 Subject: set fields we free to NULL. 2004-12-26 Rodrigo Moya * gui/e-day-view.c (e_day_view_remove_event_cb): set fields we free to NULL. svn path=/trunk/; revision=28202 --- calendar/ChangeLog | 6 ++++++ calendar/gui/e-day-view.c | 1 + 2 files changed, 7 insertions(+) (limited to 'calendar') diff --git a/calendar/ChangeLog b/calendar/ChangeLog index c9a0f2582d..f7c57a5e0b 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,4 +1,10 @@ +2004-12-26 Rodrigo Moya + + * gui/e-day-view.c (e_day_view_remove_event_cb): set fields we + free to NULL. + 2004-12-24 Harish Krishnaswamy + * gui/dialogs/event-editor.c (event_editor_edit_comp): Check for the existence of the meet/sched pages before attempting to remove them. diff --git a/calendar/gui/e-day-view.c b/calendar/gui/e-day-view.c index 89122753eb..0ea43ba498 100644 --- a/calendar/gui/e-day-view.c +++ b/calendar/gui/e-day-view.c @@ -1736,6 +1736,7 @@ e_day_view_remove_event_cb (EDayView *day_view, gtk_object_destroy (GTK_OBJECT (event->canvas_item)); e_cal_model_free_component_data (event->comp_data); + event->comp_data = NULL; if (day == E_DAY_VIEW_LONG_EVENT) { g_array_remove_index (day_view->long_events, event_num); -- cgit