Commit 624bf794 authored by Olivier Crête's avatar Olivier Crête

turn: Don't access list node after freeing it

parent 8583f4e2
......@@ -493,8 +493,13 @@ priv_remove_peer_from_list (GList *list, const NiceAddress *peer)
NiceAddress *address = (NiceAddress *) iter->data;
if (nice_address_equal (address, peer)) {
GList *prev = iter->prev;
nice_address_free (address);
list = g_list_delete_link (list, iter);
iter = prev;
if (iter)
iter = list;
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