Commit e78531ce authored by Ghislain MARY's avatar Ghislain MARY

Destroy the ICE check lists attached to an ICE session automatically when...

Destroy the ICE check lists attached to an ICE session automatically when destroying the ICE session.
parent 4e9a97bd
......@@ -181,6 +181,7 @@ IceSession * ice_session_new(void)
void ice_session_destroy(IceSession *session)
{
ms_list_for_each(session->streams, (void (*)(void*))ice_check_list_destroy);
if (session->ticker) ms_ticker_destroy(session->ticker);
if (session->local_ufrag) ms_free(session->local_ufrag);
if (session->local_pwd) ms_free(session->local_pwd);
......
......@@ -829,7 +829,6 @@ void clear_mediastreams(MediastreamDatas* args) {
ms_message("Average quality indicator: %f",args->audio ? audio_stream_get_average_quality_rating(args->audio) : -1);
if (args->audio) {
if (args->audio->ice_check_list) ice_check_list_destroy(args->audio->ice_check_list);
audio_stream_stop(args->audio);
}
#ifdef VIDEO_ENABLED
......
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