mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-12 07:40:31 +01:00
device: Destroy P2P device with its parent Wifi device
This can for example happen when a wifi device is unmanaged.
This commit is contained in:
parent
27bc2cb22a
commit
3e079e87a5
1 changed files with 6 additions and 0 deletions
|
|
@ -3396,6 +3396,12 @@ dispose (GObject *object)
|
|||
|
||||
remove_all_aps (self);
|
||||
|
||||
if (priv->p2p_device) {
|
||||
/* Destroy the P2P device. */
|
||||
g_object_remove_weak_pointer (G_OBJECT (priv->p2p_device), (gpointer*) &priv->p2p_device);
|
||||
nm_device_wifi_p2p_remove (g_steal_pointer (&priv->p2p_device));
|
||||
}
|
||||
|
||||
G_OBJECT_CLASS (nm_device_wifi_parent_class)->dispose (object);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue