summaryrefslogtreecommitdiff
path: root/eel
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2011-03-28 12:38:44 +0200
committerAlexander Larsson <alexl@redhat.com>2011-03-28 12:38:44 +0200
commitc7c860a264db211a0a68ee963ce29c7fcb2ad334 (patch)
tree50dabc078f6f55cc6b5580d47cf2b5bf7af43ae8 /eel
parent69a3e83971e2f0963d0c68f4b3e84612ff4032e8 (diff)
downloadnautilus-c7c860a264db211a0a68ee963ce29c7fcb2ad334.tar.gz
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.
Diffstat (limited to 'eel')
-rw-r--r--eel/eel-accessibility.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/eel/eel-accessibility.c b/eel/eel-accessibility.c
index 5e3fd5ad2..635365010 100644
--- a/eel/eel-accessibility.c
+++ b/eel/eel-accessibility.c
@@ -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);
}
/**