[evolution-patches] patch for #301885



Hi, Rodrigo

Here is patch for #301885. Please help me to review it.

Thanks,
Li
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/a11y/ChangeLog,v
retrieving revision 1.35
diff -u -r1.35 ChangeLog
--- ChangeLog	7 Apr 2005 07:42:28 -0000	1.35
+++ ChangeLog	22 Apr 2005 09:37:52 -0000
@@ -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),
Index: calendar/ea-day-view-main-item.c
===================================================================
RCS file: /cvs/gnome/evolution/a11y/calendar/ea-day-view-main-item.c,v
retrieving revision 1.4
diff -u -r1.4 ea-day-view-main-item.c
--- calendar/ea-day-view-main-item.c	30 Sep 2004 07:32:36 -0000	1.4
+++ calendar/ea-day-view-main-item.c	22 Apr 2005 09:37:52 -0000
@@ -606,9 +606,9 @@
 	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);
 	}
 }
 
Index: calendar/ea-week-view-main-item.c
===================================================================
RCS file: /cvs/gnome/evolution/a11y/calendar/ea-week-view-main-item.c,v
retrieving revision 1.2
diff -u -r1.2 ea-week-view-main-item.c
--- calendar/ea-week-view-main-item.c	30 Sep 2004 07:32:36 -0000	1.2
+++ calendar/ea-week-view-main-item.c	22 Apr 2005 09:37:52 -0000
@@ -600,9 +600,9 @@
 	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);
 	}
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]