predictivesearch/PcsAlgorithm/Algorithm2/src/CPcsCache.cpp
branchRCL_3
changeset 32 2828b4d142c0
parent 0 e686773b3f54
child 58 d4f567ce2e7c
--- a/predictivesearch/PcsAlgorithm/Algorithm2/src/CPcsCache.cpp	Tue Apr 27 16:23:35 2010 +0300
+++ b/predictivesearch/PcsAlgorithm/Algorithm2/src/CPcsCache.cpp	Tue May 11 16:00:21 2010 +0300
@@ -191,7 +191,7 @@
 void CPcsCache::GetContactsForKeyL(TInt aKeyId, RPointerArray<CPcsPoolElement>& aData)
     {
     PRINT ( _L("Enter CPcsCache::GetContactsForKeyL") );
-
+    CleanupClosePushL( aData );
     RPointerArray<CPcsPoolElement> arr = *keyArr[aKeyId];
     for (int i = 0; i < arr.Count(); i++)
         {
@@ -199,6 +199,7 @@
         aData.AppendL(value);
         }
 
+    CleanupStack::Pop();
     PRINT ( _L("End CPcsCache::GetContactsForKeyL") );
     }
 
@@ -209,13 +210,13 @@
 void CPcsCache::GetAllContentsL(RPointerArray<CPsData>& aData)
     {
     PRINT ( _L("Enter CPcsCache::GetAllContentsL") );
-
+    CleanupClosePushL( aData );
     for (int i = 0; i < masterPool.Count(); i++)
         {
         CPsData* value = masterPool[i];
         aData.AppendL(value);
         }
-
+    CleanupStack::Pop();
     PRINT ( _L("End CPcsCache::GetAllContentsL") );
     }