network-manager-applet r927 - trunk/src



Author: dcbw
Date: Sat Oct  4 22:47:40 2008
New Revision: 927
URL: http://svn.gnome.org/viewvc/network-manager-applet?rev=927&view=rev

Log:
Don't try to disconnect the signal if the settings object is already destroyed

Modified:
   trunk/src/applet-device-wifi.c

Modified: trunk/src/applet-device-wifi.c
==============================================================================
--- trunk/src/applet-device-wifi.c	(original)
+++ trunk/src/applet-device-wifi.c	Sat Oct  4 22:47:40 2008
@@ -1057,8 +1057,10 @@
 free_ap_notification_data (gpointer user_data)
 {
 	struct ap_notification_data *data = user_data;
+	NMSettings *settings = applet_get_settings (data->applet);
 
-	g_signal_handler_disconnect (applet_get_settings (data->applet), data->new_con_id);
+	if (settings)
+		g_signal_handler_disconnect (settings, data->new_con_id);
 	memset (data, 0, sizeof (*data));
 	g_free (data);
 }



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