[nautilus] Make sure we free custom accessibility objects
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] Make sure we free custom accessibility objects
- Date: Mon, 28 Mar 2011 12:10:54 +0000 (UTC)
commit c7c860a264db211a0a68ee963ce29c7fcb2ad334
Author: Alexander Larsson <alexl redhat com>
Date: Mon Mar 28 12:38:44 2011 +0200
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.
eel/eel-accessibility.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/eel/eel-accessibility.c b/eel/eel-accessibility.c
index 5e3fd5a..6353650 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);
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]