summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorLi Yuan <li.yuan@sun.com>2008-03-20 08:44:27 +0000
committerLi Yuan <liyuan@src.gnome.org>2008-03-20 08:44:27 +0000
commit0b266b70e0ea4163a28f915d9aea7d8d11c5d665 (patch)
tree87ecde3fd71825844c4659161af3eeb9ce10dea5 /modules
parent01d372422decf27834bf1729b600b1be0e20b97b (diff)
downloadgdk-pixbuf-0b266b70e0ea4163a28f915d9aea7d8d11c5d665.tar.gz
Bug #498079. Free cell's action info before free the action_list.
2008-03-20 Li Yuan <li.yuan@sun.com> * gailcell.c: (gail_cell_object_finalize): Bug #498079. Free cell's action info before free the action_list. svn path=/trunk/; revision=19909
Diffstat (limited to 'modules')
-rw-r--r--modules/other/gail/ChangeLog5
-rw-r--r--modules/other/gail/gailcell.c6
2 files changed, 10 insertions, 1 deletions
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 <li.yuan@sun.com>
+
+ * gailcell.c: (gail_cell_object_finalize):
+ Bug #498079. Free cell's action info before free the action_list.
+
2008-01-11 Li Yuan <li.yuan@sun.com>
* 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);