]> sjero.net Git - linphone/commitdiff
The ICE check lists are destroyed automatically when destroying the ICE session.
authorGhislain MARY <ghislain.mary@belledonne-communications.com>
Fri, 20 Jul 2012 10:15:56 +0000 (12:15 +0200)
committerGhislain MARY <ghislain.mary@belledonne-communications.com>
Fri, 20 Jul 2012 10:15:56 +0000 (12:15 +0200)
coreapi/linphonecall.c

index 5689f8dd3cefc9119570a7342447189abe83afb7..90f7675ebcdeec5d70faea80d375022a0d8903c5 100644 (file)
@@ -1471,7 +1471,6 @@ void linphone_call_stop_media_streams(LinphoneCall *call){
                if (call->endpoint){
                        linphone_call_remove_from_conf(call);
                }
-               if (call->audiostream->ice_check_list) ice_check_list_destroy(call->audiostream->ice_check_list);
                audio_stream_stop(call->audiostream);
                call->audiostream=NULL;
        }
@@ -1482,7 +1481,6 @@ void linphone_call_stop_media_streams(LinphoneCall *call){
                rtp_session_unregister_event_queue(call->videostream->session,call->videostream_app_evq);
                ortp_ev_queue_flush(call->videostream_app_evq);
                ortp_ev_queue_destroy(call->videostream_app_evq);
-               if (call->videostream->ice_check_list) ice_check_list_destroy(call->videostream->ice_check_list);
                video_stream_stop(call->videostream);
                call->videostream=NULL;
        }