Fix TC crash.
[platform/framework/native/telephony.git] / src / FTel_CallManagerImpl.cpp
index 2ddd45c..606775e 100644 (file)
@@ -135,10 +135,6 @@ _CallManagerImpl::Construct(ITelephonyCallEventListener* pListener)
     {
         SysLog(NID_TEL, "Creating an IPC instance to connect with the Connectivity service daemon has failed.");
     }
-    else
-    {
-        __pTelephonyServiceProxy->SetCallManagerImpl(*this);
-    }
 
        return r;
 
@@ -234,7 +230,7 @@ _CallManagerImpl::RequestCallForward(const String& phoneNumber)
        SysTryReturnResult(NID_TEL, !phoneNumber.IsEmpty(), E_INVALID_FORMAT, "The phone number is empty string.");
        SysTryReturnResult(NID_TEL, IsPhoneNumberValid(phoneNumber), E_INVALID_FORMAT, "The phone number is invalid format");
 
-       r = __pTelephonyServiceProxy->RequestCallForward(phoneNumber);
+       r = __pTelephonyServiceProxy->RequestCallForward(this, phoneNumber);
        SysTryReturnResult(NID_TEL, r == E_SUCCESS, r, "Propagating.");
 
        __curCallFwdState = _CALL_FORWARD_REQUESTING;
@@ -266,7 +262,7 @@ _CallManagerImpl::StopCallForward(void)
        SysTryReturnResult(NID_TEL, _NetworkManagerImpl::IsServiceAvailable(), E_SERVICE_UNAVAILABLE,
                          "The operation failed because the device is out of the coverage area or in the emergency mode.");
 
-       result r = __pTelephonyServiceProxy->StopCallForward();
+       result r = __pTelephonyServiceProxy->StopCallForward(this);
        SysTryReturnResult(NID_TEL, r == E_SUCCESS, r, "Propagating.");
 
        __curCallFwdState = _CALL_FORWARD_STOPPING;
@@ -285,7 +281,7 @@ _CallManagerImpl::GetCallForwardNumber(void)
        SysTryReturnResult(NID_TEL, _NetworkManagerImpl::IsServiceAvailable(), E_SERVICE_UNAVAILABLE,
                                          "The operation failed because the device is out of the coverage area or in the emergency mode.");
 
-       result r = __pTelephonyServiceProxy->GetCallForwardNumber();
+       result r = __pTelephonyServiceProxy->GetCallForwardNumber(this);
        SysTryReturnResult(NID_TEL, r == E_SUCCESS, r, "Propagating.");
 
        __isReqCallFwdNumInProgress = true;