From 43ad2d5fe38bdfea679c9d4e2b28faeabf35cbf7 Mon Sep 17 00:00:00 2001 From: Li Yuan Date: Mon, 25 Apr 2005 09:23:53 +0000 Subject: change the order of the code to avoid a crash. 2005-04-22 Li Yuan * calendar/ea-day-view-main-item.c: (ea_day_view_main_item_destory_cell_data): * calendar/ea-week-view-main-item.c: (ea_week_view_main_item_destory_cell_data): change the order of the code to avoid a crash. Fixes #301885 svn path=/trunk/; revision=29227 --- a11y/ChangeLog | 10 ++++++++++ a11y/calendar/ea-day-view-main-item.c | 2 +- a11y/calendar/ea-week-view-main-item.c | 2 +- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/a11y/ChangeLog b/a11y/ChangeLog index 44113cf288..3f360d626e 100644 --- a/a11y/ChangeLog +++ b/a11y/ChangeLog @@ -1,3 +1,13 @@ +2005-04-22 Li Yuan + + * calendar/ea-day-view-main-item.c: + (ea_day_view_main_item_destory_cell_data): + * calendar/ea-week-view-main-item.c: + (ea_week_view_main_item_destory_cell_data): + change the order of the code to avoid a crash. + + Fixes #301885 + 2005-04-06 Yu Mengjie * addressbook/ea-minicard-view.c: (ea_minicard_view_get_name), diff --git a/a11y/calendar/ea-day-view-main-item.c b/a11y/calendar/ea-day-view-main-item.c index b65ad63957..ea8b9ce2ee 100644 --- a/a11y/calendar/ea-day-view-main-item.c +++ b/a11y/calendar/ea-day-view-main-item.c @@ -606,9 +606,9 @@ ea_day_view_main_item_destory_cell_data (EaDayViewMainItem *ea_main_item) cell_data = g_object_get_data (G_OBJECT(ea_main_item), "ea-day-view-cell-table"); if (cell_data) { - ea_cell_table_destroy (cell_data); g_object_set_data (G_OBJECT(ea_main_item), "ea-day-view-cell-table", NULL); + ea_cell_table_destroy (cell_data); } } diff --git a/a11y/calendar/ea-week-view-main-item.c b/a11y/calendar/ea-week-view-main-item.c index 2d013dc802..81a66cfedc 100644 --- a/a11y/calendar/ea-week-view-main-item.c +++ b/a11y/calendar/ea-week-view-main-item.c @@ -600,9 +600,9 @@ ea_week_view_main_item_destory_cell_data (EaWeekViewMainItem *ea_main_item) cell_data = g_object_get_data (G_OBJECT(ea_main_item), "ea-week-view-cell-table"); if (cell_data) { - ea_cell_table_destroy (cell_data); g_object_set_data (G_OBJECT(ea_main_item), "ea-week-view-cell-table", NULL); + ea_cell_table_destroy (cell_data); } } -- cgit