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



commit e28b8582f14ed44ea0bdd846e540ca0c6712e789
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 1201bb4..f90fa52 100644
--- a/src/gnome-bluetooth/bt-widget.c
+++ b/src/gnome-bluetooth/bt-widget.c
@@ -883,7 +883,12 @@ plugin_info_destroy (gpointer data)
 		nma_bling_spinner_stop (NMA_BLING_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]