if(!__pWapPushClientId)
{
__pWapPushClientId = new (std::nothrow) Tizen::Base::Collection::MultiHashMap();
- SysTryReturnResult(NID_MSG, __pWapPushClientId != null, E_OUT_OF_MEMORY, "memory allocation failed.");
- __pWapPushClientId->Construct();
-
+ SysTryCatch(NID_MSG, __pWapPushClientId != null, ,E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] memory allocation failed.");
+ r = __pWapPushClientId->Construct();
+ SysTryCatch(NID_MSG, r == E_SUCCESS, delete __pWapPushClientId , r, "[%s] Contruct of MultiHashMap Failed.", GetErrorMessage(r));
}
if(!__pWapPushClientId->Contains(*pId, *pApp))
{
r = __pWapPushClientId->Add(*pId, *pApp);
- SysLog(NID_MSG, "AppId %ls, Client %d",AppId.GetPointer(), id);
+ SysLog(NID_MSG, "AppId %ls, Client %d",AppId.GetPointer(), id);
return r;
}
+
+ delete pId;
+ delete pApp;
+ return r;
+
+CATCH:
delete pId;
delete pApp;
return r;
+
}
result
if(!__pSmsClientId)
{
__pSmsClientId = new (std::nothrow) Tizen::Base::Collection::MultiHashMap();
- SysTryReturnResult(NID_MSG, __pSmsClientId != null, E_OUT_OF_MEMORY, "memory allocation failed.");
- __pSmsClientId->Construct();
+ SysTryCatch(NID_MSG, __pSmsClientId != null, ,E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] memory allocation failed.");
+ r = __pSmsClientId->Construct();
+ SysTryCatch(NID_MSG, r == E_SUCCESS, delete __pSmsClientId , r, "[%s] Contruct of MultiHashMap Failed.", GetErrorMessage(r));
}
if(!__pSmsClientId->Contains(*pId, *pPort))
{
r = __pSmsClientId->Add(*pId, *pPort);
- SysLog(NID_MSG, "Port %ls, Client %d",pPort->GetPointer(), id);
+ SysLog(NID_MSG, "Port %ls, Client %d",pPort->GetPointer(), id);
return r;
}
+
+ delete pId;
+ delete pPort;
+ return r;
+
+CATCH:
delete pId;
delete pPort;
return r;
if(!__pCbsEtwsClientId)
{
__pCbsEtwsClientId = new (std::nothrow) Tizen::Base::Collection::ArrayList();
- SysTryReturnResult(NID_MSG, __pCbsEtwsClientId != null, E_OUT_OF_MEMORY, "memory allocation failed.");
- __pCbsEtwsClientId->Construct();
+ SysTryCatch(NID_MSG, __pCbsEtwsClientId != null, ,E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] memory allocation failed.");
+ r = __pCbsEtwsClientId->Construct();
+ SysTryCatch(NID_MSG, r == E_SUCCESS, delete __pCbsEtwsClientId , r, "[%s] Contruct of ArrayList Failed.", GetErrorMessage(r));
}
if(!__pCbsEtwsClientId->Contains(*pId))
}
delete pId;
return r;
+
+CATCH:
+ delete pId;
+ return r;
+
}
result