diff --git a/tester/complex_sip_call_tester.c b/tester/complex_sip_call_tester.c index 96c10d354..9681e6c88 100644 --- a/tester/complex_sip_call_tester.c +++ b/tester/complex_sip_call_tester.c @@ -141,7 +141,7 @@ static void call_with_audio_mline_before_video_in_sdp() { if (sipp_out) { BC_ASSERT_TRUE(wait_for(mgr->lc, mgr->lc, &mgr->stat.number_of_LinphoneCallIncomingReceived, 1)); - call = linphone_call_ref(linphone_core_get_current_call(mgr->lc)); + call = linphone_core_get_current_call(mgr->lc); BC_ASSERT_PTR_NOT_NULL(call); if (call) { linphone_core_accept_call(mgr->lc, call); @@ -152,7 +152,6 @@ static void call_with_audio_mline_before_video_in_sdp() { BC_ASSERT_TRUE(linphone_call_log_video_enabled(linphone_call_get_call_log(call))); check_rtcp(call); - linphone_call_unref(call); } BC_ASSERT_TRUE(wait_for(mgr->lc, mgr->lc, &mgr->stat.number_of_LinphoneCallEnd, 1)); @@ -183,7 +182,7 @@ static void call_with_video_mline_before_audio_in_sdp() { if (sipp_out) { BC_ASSERT_TRUE(wait_for(mgr->lc, mgr->lc, &mgr->stat.number_of_LinphoneCallIncomingReceived, 1)); - call = linphone_call_ref(linphone_core_get_current_call(mgr->lc)); + call = linphone_core_get_current_call(mgr->lc); BC_ASSERT_PTR_NOT_NULL(call); if (call) { linphone_core_accept_call(mgr->lc, call); @@ -194,7 +193,6 @@ static void call_with_video_mline_before_audio_in_sdp() { BC_ASSERT_TRUE(linphone_call_log_video_enabled(linphone_call_get_call_log(call))); check_rtcp(call); - linphone_call_unref(call); } BC_ASSERT_TRUE(wait_for(mgr->lc, mgr->lc, &mgr->stat.number_of_LinphoneCallEnd, 1)); @@ -225,7 +223,7 @@ static void call_with_multiple_audio_mline_in_sdp() { if (sipp_out) { BC_ASSERT_TRUE(wait_for(mgr->lc, mgr->lc, &mgr->stat.number_of_LinphoneCallIncomingReceived, 1)); - call = linphone_call_ref(linphone_core_get_current_call(mgr->lc)); + call = linphone_core_get_current_call(mgr->lc); BC_ASSERT_PTR_NOT_NULL(call); if (call) { linphone_core_accept_call(mgr->lc, call); @@ -236,7 +234,6 @@ static void call_with_multiple_audio_mline_in_sdp() { BC_ASSERT_TRUE(linphone_call_log_video_enabled(linphone_call_get_call_log(call))); check_rtcp(call); - linphone_call_unref(call); } BC_ASSERT_TRUE(wait_for(mgr->lc, mgr->lc, &mgr->stat.number_of_LinphoneCallEnd, 1)); @@ -267,7 +264,7 @@ static void call_with_multiple_video_mline_in_sdp() { if (sipp_out) { BC_ASSERT_TRUE(wait_for(mgr->lc, mgr->lc, &mgr->stat.number_of_LinphoneCallIncomingReceived, 1)); - call = linphone_call_ref(linphone_core_get_current_call(mgr->lc)); + call = linphone_core_get_current_call(mgr->lc); BC_ASSERT_PTR_NOT_NULL(call); if (call) { linphone_core_accept_call(mgr->lc, call); @@ -278,7 +275,6 @@ static void call_with_multiple_video_mline_in_sdp() { BC_ASSERT_TRUE(linphone_call_log_video_enabled(linphone_call_get_call_log(call))); check_rtcp(call); - linphone_call_unref(call); } BC_ASSERT_TRUE(wait_for(mgr->lc, mgr->lc, &mgr->stat.number_of_LinphoneCallEnd, 1));