diff options
author | Beniamino Galvani <bgalvani@redhat.com> | 2017-02-16 18:48:38 +0100 |
---|---|---|
committer | Beniamino Galvani <bgalvani@redhat.com> | 2017-02-18 10:24:26 +0100 |
commit | 5ae3db75158b2a5d71ea7027fe12638a3d243a4e (patch) | |
tree | edc8c2a2cb562065a58bd1ed34e6cc8a42e12788 /libnm/nm-device.c | |
parent | ae158bf178d9a7480a5e5378b2a8a511bdb5db9e (diff) | |
download | NetworkManager-5ae3db75158b2a5d71ea7027fe12638a3d243a4e.tar.gz |
libnm: disconnect signal from D-Bus proxies on dispose
https://bugzilla.gnome.org/show_bug.cgi?id=778615
Diffstat (limited to 'libnm/nm-device.c')
-rw-r--r-- | libnm/nm-device.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libnm/nm-device.c b/libnm/nm-device.c index 02b5cad550..85cd060b8f 100644 --- a/libnm/nm-device.c +++ b/libnm/nm-device.c @@ -297,6 +297,8 @@ dispose (GObject *object) g_clear_pointer (&priv->available_connections, g_ptr_array_unref); g_clear_pointer (&priv->lldp_neighbors, g_ptr_array_unref); + if (priv->proxy) + g_signal_handlers_disconnect_by_func (priv->proxy, device_state_reason_changed, object); g_clear_object (&priv->proxy); G_OBJECT_CLASS (nm_device_parent_class)->dispose (object); |