From 701d663523418c88c76b525d6e4f8f55146abac1 Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Tue, 28 May 2019 15:57:43 +0200 Subject: [PATCH 1/8] devices/modem-broadband: disconnect signals on dispose --- src/devices/wwan/nm-modem-broadband.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/devices/wwan/nm-modem-broadband.c b/src/devices/wwan/nm-modem-broadband.c index ae9293b0f0..7ddac6c640 100644 --- a/src/devices/wwan/nm-modem-broadband.c +++ b/src/devices/wwan/nm-modem-broadband.c @@ -1448,7 +1448,12 @@ dispose (GObject *object) g_clear_object (&self->_priv.ipv4_config); g_clear_object (&self->_priv.ipv6_config); g_clear_object (&self->_priv.bearer); - g_clear_object (&self->_priv.modem_iface); + + if (self->_priv.modem_iface) { + g_signal_handlers_disconnect_by_data (self->_priv.modem_iface, self); + g_clear_object (&self->_priv.modem_iface); + } + g_clear_object (&self->_priv.simple_iface); g_clear_object (&self->_priv.sim_iface); g_clear_object (&self->_priv.modem_object); From 84539ce4cc9f466862314093de2f2ed9d0438921 Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Mon, 6 May 2019 14:29:04 +0200 Subject: [PATCH 2/8] introspection/modem: (trivial) move a signal below properties --- ...reedesktop.NetworkManager.Device.Modem.xml | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/introspection/org.freedesktop.NetworkManager.Device.Modem.xml b/introspection/org.freedesktop.NetworkManager.Device.Modem.xml index d3cbd55768..330d693119 100644 --- a/introspection/org.freedesktop.NetworkManager.Device.Modem.xml +++ b/introspection/org.freedesktop.NetworkManager.Device.Modem.xml @@ -6,17 +6,6 @@ --> - - - - - - + + + + + + From 03a91270b87d80e187dddfea17e50a04638169b5 Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Mon, 6 May 2019 17:12:08 +0200 Subject: [PATCH 3/8] wwan: expose device id on the bus The device id is useful to pinpoint the connection to a particular device. However, we don't expose it anywhere and it's sort of hard to guess. --- ...reedesktop.NetworkManager.Device.Modem.xml | 11 ++++++++++ src/devices/wwan/libnm-wwan.ver | 1 + src/devices/wwan/nm-device-modem.c | 21 ++++++++++++++++++- src/devices/wwan/nm-device-modem.h | 1 + 4 files changed, 33 insertions(+), 1 deletion(-) diff --git a/introspection/org.freedesktop.NetworkManager.Device.Modem.xml b/introspection/org.freedesktop.NetworkManager.Device.Modem.xml index 330d693119..9ef4c7105d 100644 --- a/introspection/org.freedesktop.NetworkManager.Device.Modem.xml +++ b/introspection/org.freedesktop.NetworkManager.Device.Modem.xml @@ -28,6 +28,17 @@ --> + + + + + + + + +