core: fix removal of killswitches on udev events

This commit is contained in:
Dan Williams
2009-06-12 10:30:03 -04:00
parent aa7458062a
commit 48e7a9eb47

View File

@@ -237,9 +237,8 @@ rfkill_remove (NMUdevManager *self,
if (!strcmp (ks->name, name)) { if (!strcmp (ks->name, name)) {
nm_info ("Radio killswitch %s disappeared", ks->path); nm_info ("Radio killswitch %s disappeared", ks->path);
priv->killswitches = g_slist_remove (priv->killswitches, iter); priv->killswitches = g_slist_remove (priv->killswitches, ks);
killswitch_destroy (iter->data); killswitch_destroy (ks);
g_slist_free (iter);
break; break;
} }
} }