Commit c88446be authored by Youness Alaoui's avatar Youness Alaoui

oups, we need to free the incoming checks only after we process them, not...

oups, we need to free the incoming checks only after we process them, not inside the loop processing them...
parent aad4a656
......@@ -1036,17 +1036,18 @@ void conn_check_remote_candidates_set(NiceAgent *agent)
}
}
}
/* Once we process the pending checks, we should free them to avoid
* reprocessing them again if a dribble-mode set_remote_candidates
* is called */
for (m = component->incoming_checks; m; m = m->next) {
IncomingCheck *icheck = m->data;
g_free (icheck->username);
g_slice_free (IncomingCheck, icheck);
}
g_slist_free (component->incoming_checks);
component->incoming_checks = NULL;
}
/* Once we process the pending checks, we should free them to avoid
* reprocessing them again if a dribble-mode set_remote_candidates
* is called */
for (m = component->incoming_checks; m; m = m->next) {
IncomingCheck *icheck = m->data;
g_free (icheck->username);
g_slice_free (IncomingCheck, icheck);
}
g_slist_free (component->incoming_checks);
component->incoming_checks = NULL;
}
}
}
......
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