a11y: Mark cells as defunct when deleting them

Just unreffing isn't enough, atk-bridge might have a reference to the
object still.
This commit is contained in:
Benjamin Otte 2012-02-12 16:44:21 +01:00
parent a96c122fa4
commit 90e65f30ab

View File

@ -97,6 +97,7 @@ gtk_tree_view_accessible_get_data_quark (void)
static void
cell_info_free (GtkTreeViewAccessibleCellInfo *cell_info)
{
gtk_accessible_set_widget (GTK_ACCESSIBLE (cell_info->cell), NULL);
g_object_unref (cell_info->cell);
g_free (cell_info);