|
|
@@ -228,11 +228,12 @@ ErrorCodeEnum CUpgradeMgrEntity::DownloadPack(const CSimpleStringA &strPackFile)
|
|
|
pClient->GetFunction()->CloseSession();
|
|
|
}
|
|
|
else
|
|
|
- {
|
|
|
+ {
|
|
|
Dbg("connect to download entity fail: %d", rc);
|
|
|
+ pClient->SafeDelete();
|
|
|
}
|
|
|
|
|
|
- pClient->SafeDelete();
|
|
|
+ //pClient->SafeDelete();
|
|
|
return rc;
|
|
|
}
|
|
|
|
|
|
@@ -252,9 +253,10 @@ ErrorCodeEnum CUpgradeMgrEntity::CancelDownloadPack(const CSimpleStringA &strPac
|
|
|
else
|
|
|
{
|
|
|
Dbg("connect to download entity fail: %d", rc);
|
|
|
+ pClient->SafeDelete();
|
|
|
}
|
|
|
|
|
|
- pClient->SafeDelete();
|
|
|
+ //pClient->SafeDelete();
|
|
|
return rc;
|
|
|
}
|
|
|
|
|
|
@@ -328,8 +330,9 @@ ErrorCodeEnum CUpgradeMgrEntity::SyncTime()
|
|
|
else
|
|
|
{
|
|
|
LogError(Severity_Low, rc, 0, "connect to entity [AccessAuthorization] fail");
|
|
|
+ pClient->SafeDelete();
|
|
|
}
|
|
|
- pClient->SafeDelete();
|
|
|
+ //pClient->SafeDelete();
|
|
|
|
|
|
return rc;
|
|
|
}
|
|
|
@@ -351,9 +354,10 @@ ErrorCodeEnum CUpgradeMgrEntity::PushUpdateTask(const CSimpleStringA &strPackNam
|
|
|
else
|
|
|
{
|
|
|
Dbg("connect to upgrade run entity fail: %d", rc);
|
|
|
+ pClient->SafeDelete();
|
|
|
}
|
|
|
|
|
|
- pClient->SafeDelete();
|
|
|
+ //pClient->SafeDelete();
|
|
|
return rc;
|
|
|
}
|
|
|
|
|
|
@@ -885,8 +889,9 @@ ErrorCodeEnum CUpgradeMgrEntity::StopMediaPlay()
|
|
|
else
|
|
|
{
|
|
|
LogError(Severity_Low, rc, 0, "connect to entity [LocalMediaPlay] fail");
|
|
|
+ pClient->SafeDelete();
|
|
|
}
|
|
|
- pClient->SafeDelete();
|
|
|
+ //pClient->SafeDelete();
|
|
|
|
|
|
return rc;
|
|
|
}
|