From 0b266b70e0ea4163a28f915d9aea7d8d11c5d665 Mon Sep 17 00:00:00 2001 From: Li Yuan Date: Thu, 20 Mar 2008 08:44:27 +0000 Subject: Bug #498079. Free cell's action info before free the action_list. 2008-03-20 Li Yuan * gailcell.c: (gail_cell_object_finalize): Bug #498079. Free cell's action info before free the action_list. svn path=/trunk/; revision=19909 --- modules/other/gail/ChangeLog | 5 +++++ modules/other/gail/gailcell.c | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/other/gail/ChangeLog b/modules/other/gail/ChangeLog index 2cdbf7c4f..798a67d2d 100644 --- a/modules/other/gail/ChangeLog +++ b/modules/other/gail/ChangeLog @@ -1,3 +1,8 @@ +2008-03-20 Li Yuan + + * gailcell.c: (gail_cell_object_finalize): + Bug #498079. Free cell's action info before free the action_list. + 2008-01-11 Li Yuan * gailtreeview.c: (gail_tree_view_real_initialize), (focus_in), diff --git a/modules/other/gail/gailcell.c b/modules/other/gail/gailcell.c index 9a8849138..d8a72618d 100644 --- a/modules/other/gail/gailcell.c +++ b/modules/other/gail/gailcell.c @@ -146,7 +146,11 @@ gail_cell_object_finalize (GObject *obj) if (cell->state_set) g_object_unref (cell->state_set); - g_list_free (cell->action_list); + if (cell->action_list) + { + g_list_foreach (cell->action_list, _gail_cell_destroy_action_info, NULL); + g_list_free (cell->action_list); + } if (cell->action_idle_handler) { g_source_remove (cell->action_idle_handler); -- cgit v1.2.1