Commit 48e7a9eb authored by Dan Williams's avatar Dan Williams

core: fix removal of killswitches on udev events

parent aa745806
......@@ -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);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment