aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLi Yuan <li.yuan@sun.com>2005-04-25 17:23:53 +0800
committerHarry Lu <haip@src.gnome.org>2005-04-25 17:23:53 +0800
commit43ad2d5fe38bdfea679c9d4e2b28faeabf35cbf7 (patch)
tree94aa4a5e5a36be9ae375ca8cc1a24c39340c47d5
parent00d3f0c862d2b61fd7ccec25d488f93de2da6333 (diff)
downloadgsoc2013-evolution-43ad2d5fe38bdfea679c9d4e2b28faeabf35cbf7.tar
gsoc2013-evolution-43ad2d5fe38bdfea679c9d4e2b28faeabf35cbf7.tar.gz
gsoc2013-evolution-43ad2d5fe38bdfea679c9d4e2b28faeabf35cbf7.tar.bz2
gsoc2013-evolution-43ad2d5fe38bdfea679c9d4e2b28faeabf35cbf7.tar.lz
gsoc2013-evolution-43ad2d5fe38bdfea679c9d4e2b28faeabf35cbf7.tar.xz
gsoc2013-evolution-43ad2d5fe38bdfea679c9d4e2b28faeabf35cbf7.tar.zst
gsoc2013-evolution-43ad2d5fe38bdfea679c9d4e2b28faeabf35cbf7.zip
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
-rw-r--r--a11y/ChangeLog10
-rw-r--r--a11y/calendar/ea-day-view-main-item.c2
-rw-r--r--a11y/calendar/ea-week-view-main-item.c2
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 <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),
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);
}
}