change the order of the code to avoid a crash.

2005-04-22  Li Yuan  <li.yuan@sun.com>

	* 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
This commit is contained in:
Li Yuan
2005-04-25 09:23:53 +00:00
committed by Harry Lu
parent 00d3f0c862
commit 43ad2d5fe3
3 changed files with 12 additions and 2 deletions

View File

@ -1,3 +1,13 @@
2005-04-22 Li Yuan <li.yuan@sun.com>
* 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 <meng-jie.yu@sun.com>
* addressbook/ea-minicard-view.c: (ea_minicard_view_get_name),

View File

@ -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);
}
}

View File

@ -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);
}
}