mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-24 19:30:07 +01:00
core: fix removal of killswitches on udev events
This commit is contained in:
parent
aa7458062a
commit
48e7a9eb47
1 changed files with 2 additions and 3 deletions
|
|
@ -237,9 +237,8 @@ rfkill_remove (NMUdevManager *self,
|
|||
|
||||
if (!strcmp (ks->name, name)) {
|
||||
nm_info ("Radio killswitch %s disappeared", ks->path);
|
||||
priv->killswitches = g_slist_remove (priv->killswitches, iter);
|
||||
killswitch_destroy (iter->data);
|
||||
g_slist_free (iter);
|
||||
priv->killswitches = g_slist_remove (priv->killswitches, ks);
|
||||
killswitch_destroy (ks);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue