Freeze break request



Yet another leak in nautilus. This time its an accessible that is
leaked. Patch attached.


-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Alexander Larsson                                            Red Hat, Inc 
       alexl redhat com            alexander larsson gmail com 
He's a witless skateboarding ex-con for the 21st century. She's a foxy gypsy 
socialite on the trail of a serial killer. They fight crime! 
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.

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]