diff -r a41eacd3dc5e -r 721a5e5fe251 contentmgmt/referencedrmagent/RefTestAgent/RefTestAgent/Reftestagentrightsmanager.cpp --- a/contentmgmt/referencedrmagent/RefTestAgent/RefTestAgent/Reftestagentrightsmanager.cpp Fri Jan 22 11:10:12 2010 +0200 +++ b/contentmgmt/referencedrmagent/RefTestAgent/RefTestAgent/Reftestagentrightsmanager.cpp Tue Jan 26 13:18:49 2010 +0200 @@ -46,27 +46,35 @@ { TRightsStatus rightsStatus= ERightsStatusNone; CRightsInfo *rightsInfo = CRightsInfo::NewL(KRightsDescription(), KRightsUniqueId(), ERightsTypeConsumable , rightsStatus); + CleanupStack::PushL(rightsInfo); aArray.AppendL(rightsInfo); + CleanupStack::Pop(rightsInfo); } void CRefTestAgentRightsManager::ListRightsL (RStreamablePtrArray< CRightsInfo > &aArray, const TDesC &) const { TRightsStatus rightsStatus= ERightsStatusNone; CRightsInfo *rightsInfo = CRightsInfo::NewL(KRightsDescription(), KRightsUniqueId(), ERightsTypeConsumable , rightsStatus); + CleanupStack::PushL(rightsInfo); aArray.AppendL(rightsInfo); + CleanupStack::Pop(rightsInfo); } void CRefTestAgentRightsManager::ListRightsL (RStreamablePtrArray< CRightsInfo > &aArray, TVirtualPathPtr &/*aVirtualPath*/) const { TRightsStatus rightsStatus= ERightsStatusNone; CRightsInfo *rightsInfo = CRightsInfo::NewL(KRightsDescription(), KRightsUniqueId(), ERightsTypeConsumable , rightsStatus); + CleanupStack::PushL(rightsInfo); aArray.AppendL(rightsInfo); + CleanupStack::Pop(rightsInfo); } void CRefTestAgentRightsManager::ListContentL (RStreamablePtrArray< CVirtualPath > &aArray, CRightsInfo &aRightsInfo) const { CVirtualPath *virtualPath= CVirtualPath::NewL(aRightsInfo.Description()); + CleanupStack::PushL(virtualPath); aArray.AppendL(virtualPath); + CleanupStack::Pop(virtualPath); } MAgentRightsBase *CRefTestAgentRightsManager::GetRightsDataL (const CRightsInfo &/*aRightsInfo*/) const