CommonService::~CommonService(void)
{
delete __pPackageManagerStub;
- delete __pDeviceManagerStub;
+ if (__pDeviceManagerStub)
+ {
+ delete __pDeviceManagerStub;
+ }
}
ServiceApp*
{
result r = E_SUCCESS;
r = __Mutex.Create(DEVIVE_MANAGER_SERVICE_MUTEX_ID);
- SysTryReturn(NID_SYS, r == E_SUCCESS, , r, "It is failed to create mutex. [%s] Propaged.", r);
+ SysTryReturn(NID_SYS, r == E_SUCCESS, , r, "It is failed to create mutex. [%s] Propaged.", GetErrorMessage(r));
r = __interestedPidList.Construct();
SysTryReturn(NID_SYS, r == E_SUCCESS, , r, "It is failed to initiate bluetooth headset application list.");
}
}
__interestedPidList.RemoveAll();
result r = __Mutex.Release();
- SysTryReturn(NID_SYS, r == E_SUCCESS, , r, "It is failed to release mutex. [%s] Propaged.", r);
+ SysTryReturn(NID_SYS, r == E_SUCCESS, , r, "It is failed to release mutex. [%s] Propaged.", GetErrorMessage(r));
}
_DeviceManagerStub*