mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-10 18:20:37 +01:00
bluetooth: unhook adapter properties callback when the adapter vanishes
https://bugzilla.redhat.com/show_bug.cgi?id=1454654
This commit is contained in:
parent
30d06b2253
commit
0aa2e0bad3
1 changed files with 5 additions and 1 deletions
|
|
@ -1187,7 +1187,11 @@ dispose (GObject *object)
|
|||
g_slist_free_full (priv->connections, g_object_unref);
|
||||
priv->connections = NULL;
|
||||
|
||||
g_clear_object (&priv->adapter5);
|
||||
if (priv->adapter5) {
|
||||
g_signal_handlers_disconnect_by_func (priv->adapter5, adapter5_on_properties_changed, self);
|
||||
g_clear_object (&priv->adapter5);
|
||||
}
|
||||
|
||||
g_clear_object (&priv->dbus_connection);
|
||||
|
||||
G_OBJECT_CLASS (nm_bluez_device_parent_class)->dispose (object);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue