diff -r 0d28c1c5b6dd -r 2828b4d142c0 predictivesearch/PcsAlgorithm/Algorithm2/src/CPcsCache.cpp --- 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& aData) { PRINT ( _L("Enter CPcsCache::GetContactsForKeyL") ); - + CleanupClosePushL( aData ); RPointerArray 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& 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") ); }