photosgallery/viewframework/medialists/tsrc/t_cglxgarbagecollector/t_cglxgarbagecollector.cpp
branchRCL_3
changeset 15 191387a8b767
parent 13 bcb43dc84c44
--- a/photosgallery/viewframework/medialists/tsrc/t_cglxgarbagecollector/t_cglxgarbagecollector.cpp	Wed Apr 14 15:57:24 2010 +0300
+++ b/photosgallery/viewframework/medialists/tsrc/t_cglxgarbagecollector/t_cglxgarbagecollector.cpp	Tue Apr 27 16:37:53 2010 +0300
@@ -2260,11 +2260,13 @@
         TInt /*aIndex*/, 
         RArray<TMPXAttribute>& aAttributes)
     {
+    CleanupClosePushL(aAttributes);
     TInt attributeCount = iAttributes.Count();
     for (TInt i = 0; i < attributeCount; ++i)
         {
         aAttributes.AppendL(iAttributes[i]);
         }
+    CleanupStack::Pop(&aAttributes);
     }
 
 void T_CGlxGarbageCollector::CGlxMediaUserTest::RemoveReference(TInt aIndex)