[gnome-control-center] network: Fix possible crash when wireless-enabled changes
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] network: Fix possible crash when wireless-enabled changes
- Date: Wed, 3 Sep 2014 16:16:33 +0000 (UTC)
commit a19c7ec9775757b57c6f879fa79ef32cf71de4e0
Author: Bastien Nocera <hadess hadess net>
Date: Wed Sep 3 13:20:01 2014 +0200
network: Fix possible crash when wireless-enabled changes
The device we're handling might have disappeared already, but we're
listening on the NMClient object, which is still alive.
https://bugzilla.gnome.org/show_bug.cgi?id=735932
panels/network/net-device-wifi.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/panels/network/net-device-wifi.c b/panels/network/net-device-wifi.c
index 78bac7f..476476f 100644
--- a/panels/network/net-device-wifi.c
+++ b/panels/network/net-device-wifi.c
@@ -1287,8 +1287,8 @@ net_device_wifi_constructed (GObject *object)
G_OBJECT_CLASS (net_device_wifi_parent_class)->constructed (object);
client = net_object_get_client (NET_OBJECT (device_wifi));
- g_signal_connect (client, "notify::wireless-enabled",
- G_CALLBACK (wireless_enabled_toggled), device_wifi);
+ g_signal_connect_object (client, "notify::wireless-enabled",
+ G_CALLBACK (wireless_enabled_toggled), device_wifi, 0);
nm_device = net_device_get_nm_device (NET_DEVICE (device_wifi));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]