[network-manager-applet] bluetooth: fix crash when widget is destroyed (bgo #661177)



commit bfb603de56c9be28594c637b7030d0c43be353ef
Author: Vincent Untz <vuntz gnome org>
Date:   Fri Oct 21 01:14:50 2011 -0500

    bluetooth: fix crash when widget is destroyed (bgo #661177)

 src/gnome-bluetooth/bt-widget.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/gnome-bluetooth/bt-widget.c b/src/gnome-bluetooth/bt-widget.c
index 972916d..18c2059 100644
--- a/src/gnome-bluetooth/bt-widget.c
+++ b/src/gnome-bluetooth/bt-widget.c
@@ -944,7 +944,12 @@ plugin_info_destroy (gpointer data)
 		gtk_spinner_stop (GTK_SPINNER (info->spinner));
 	g_object_unref (info->settings);
 	g_object_unref (info->btmodel);
+
+	g_signal_handlers_disconnect_matched (info->btclient,
+	                                      G_SIGNAL_MATCH_DATA, 0, 0, NULL,
+	                                      NULL, info);
 	g_object_unref (info->btclient);
+
 	if (info->bus)
 		dbus_g_connection_unref (info->bus);
 	memset (info, 0, sizeof (PluginInfo));



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