Commit 551cb0c7 authored by Ghislain MARY's avatar Ghislain MARY
Browse files

Fix crash with referred call.

parent fc7b8816
......@@ -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();
......
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