mpx/commonframework/common/src/mpxuser.cpp
branchRCL_3
changeset 24 6c1dfe4da5dd
parent 0 a2952bb97e68
child 25 63223d4fd956
--- a/mpx/commonframework/common/src/mpxuser.cpp	Thu Aug 19 10:24:28 2010 +0300
+++ b/mpx/commonframework/common/src/mpxuser.cpp	Tue Aug 31 15:41:40 2010 +0300
@@ -256,6 +256,7 @@
     const TArray<TMPXAttribute>& aSrc,
     RArray<TMPXAttribute>& aDest)
     {
+    CleanupClosePushL(aDest);
     aDest.Reset();
     for (TInt i = 0; i < aSrc.Count(); i++)
         {
@@ -271,6 +272,7 @@
             d = TMPXAttribute(d.ContentId(), d.AttributeId() | s.AttributeId());
             }
         }
+    CleanupStack::Pop();
     }
 
 // ----------------------------------------------------------------------------
@@ -384,6 +386,7 @@
 //
 EXPORT_C void MPXUser::InternalizeL(RArray<TMPXItemId>& aArray, RReadStream& aStream)
     {
+    CleanupClosePushL(aArray);
     TInt n=aStream.ReadInt32L();
     for (TInt i=0;i<n;++i)
         {
@@ -391,6 +394,7 @@
         TUint32 id2(aStream.ReadUint32L());
         aArray.AppendL(TMPXItemId(id1,id2));
         }
+    CleanupStack::Pop();
     }
 
 // ----------------------------------------------------------------------------