From 551cb0c775a9a822d8aed374952740f7232498b1 Mon Sep 17 00:00:00 2001 From: Ghislain MARY Date: Wed, 2 May 2018 11:35:32 +0200 Subject: [PATCH] Fix crash with referred call. --- src/call/call.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/call/call.cpp b/src/call/call.cpp index e5fbf5b15..527664189 100644 --- a/src/call/call.cpp +++ b/src/call/call.cpp @@ -124,7 +124,6 @@ shared_ptr 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();