Fix crash with referred call.

This commit is contained in:
Ghislain MARY 2018-05-02 11:35:32 +02:00
parent fc7b881660
commit 551cb0c775

View file

@ -124,7 +124,6 @@ shared_ptr<Call> CallPrivate::startReferredCall (const MediaSessionParams *param
L_GET_PRIVATE(getActiveSession())->setReferPending(false);
LinphoneCallParams *lcp = L_GET_C_BACK_PTR(&msp);
LinphoneCall *newCall = linphone_core_invite_with_params(q->getCore()->getCCore(), q->getReferTo().c_str(), lcp);
linphone_call_params_unref(lcp);
if (newCall) {
getActiveSession()->getPrivate()->setTransferTarget(L_GET_PRIVATE_FROM_C_OBJECT(newCall)->getActiveSession());
L_GET_PRIVATE_FROM_C_OBJECT(newCall)->getActiveSession()->getPrivate()->notifyReferState();