[g-a-devel]Patch for at-poke



I have noticed that at-poke does not deregister the global event listeners which 
it has registered.

The attached patch does this deregistration.

Comments?

Padraig
Index: main.c
===================================================================
RCS file: /cvs/gnome/at-poke/src/main.c,v
retrieving revision 1.15
diff -u -p -r1.15 main.c
--- main.c	24 Sep 2002 13:14:48 -0000	1.15
+++ main.c	2 Oct 2002 12:18:10 -0000
@@ -25,6 +25,7 @@
 
 #include "graphics.h"
 #include "child-listener.h"
+#include "accessible-listener.h"
 
 extern void poke (Accessible *accessible);
 extern Accessible *get_accessible_at_index (GtkListStore *list_store, int i);
@@ -357,6 +358,10 @@ application_window (void)
 	g_object_unref (app_xml);
 	g_free (app_window);
 	g_object_unref (cl);
+	/*
+	 * Deregister listeners which have been registered.
+	 */
+	g_object_unref (accessible_listener_get ());
 }
 
 static gboolean


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]