]> sjero.net Git - linphone/commitdiff
Clean ICE session deletion on call end.
authorGhislain MARY <ghislain.mary@belledonne-communications.com>
Fri, 5 Oct 2012 08:25:18 +0000 (10:25 +0200)
committerGhislain MARY <ghislain.mary@belledonne-communications.com>
Fri, 5 Oct 2012 09:31:54 +0000 (11:31 +0200)
coreapi/linphonecall.c

index 88e7d01a9865ce07d46abcf0e6a4c17e4800ec06..fa58bb465023c8938a248c17197a3951944c7822 100644 (file)
@@ -582,6 +582,7 @@ void linphone_call_set_state(LinphoneCall *call, LinphoneCallState cstate, const
 
 static void linphone_call_destroy(LinphoneCall *obj)
 {
+       linphone_call_delete_ice_session(obj);
        if (obj->op!=NULL) {
                sal_op_release(obj->op);
                obj->op=NULL;
@@ -605,9 +606,6 @@ static void linphone_call_destroy(LinphoneCall *obj)
        if (obj->auth_token) {
                ms_free(obj->auth_token);
        }
-       if (obj->ice_session) {
-               ice_session_destroy(obj->ice_session);
-       }
 
        ms_free(obj);
 }