mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-26 01:50:08 +01:00
core: use nm_c_list_elem_free_steal() in _delete_volatile_connection_all ()
This commit is contained in:
parent
a9b15bde3c
commit
dd5acc0370
1 changed files with 1 additions and 3 deletions
|
|
@ -2157,9 +2157,7 @@ _delete_volatile_connection_all (NMManager *self, gboolean do_delete)
|
|||
while ((elem = c_list_first_entry (&priv->delete_volatile_connection_lst_head, NMCListElem, lst))) {
|
||||
gs_unref_object NMSettingsConnection *connection = NULL;
|
||||
|
||||
connection = elem->data;
|
||||
nm_c_list_elem_free (elem);
|
||||
|
||||
connection = nm_c_list_elem_free_steal (elem);
|
||||
if (do_delete)
|
||||
_delete_volatile_connection_do (self, connection);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue