Commit c7c860a2 authored by Alexander Larsson's avatar Alexander Larsson

Make sure we free custom accessibility objects

Custom accessibility objects, such as NautilusIconContainerAccessible
need to be freed when their corresponding widget/object dies, right
now we're not unreferencing the accessible, so its always leaked.
parent 69a3e839
......@@ -188,8 +188,11 @@ static void
eel_accessibility_destroy (gpointer data,
GObject *where_the_object_was)
{
g_object_set_qdata
(G_OBJECT (data), get_quark_gobject (), NULL);
atk_object_notify_state_change
(ATK_OBJECT (data), ATK_STATE_DEFUNCT, TRUE);
(ATK_OBJECT (data), ATK_STATE_DEFUNCT, TRUE);
g_object_unref (data);
}
/**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment