predictivesearch/PcsAlgorithm/Algorithm2/src/CPcsAlgorithm2Utils.cpp
branchRCL_3
changeset 11 2828b4d142c0
parent 0 e686773b3f54
child 18 d4f567ce2e7c
--- a/predictivesearch/PcsAlgorithm/Algorithm2/src/CPcsAlgorithm2Utils.cpp	Tue Apr 27 16:23:35 2010 +0300
+++ b/predictivesearch/PcsAlgorithm/Algorithm2/src/CPcsAlgorithm2Utils.cpp	Tue May 11 16:00:21 2010 +0300
@@ -35,6 +35,8 @@
 void CPcsAlgorithm2Utils::FormCompleteSearchResultsL(RPointerArray<CPSDATA_R_PTR_ARRAY>& aSearchResultsArr,
                                                      RPointerArray<CPsData>& SearchResults)
     {
+    CleanupClosePushL( SearchResults );
+    
     TInt maxIndex = 0;
     TInt maxValue = aSearchResultsArr[maxIndex]->Count();
     TLinearOrder<CPsData> rule(CPcsAlgorithm2Utils::CompareDataBySortOrder);
@@ -68,6 +70,7 @@
                 }
             }
         }
+    CleanupStack::Pop();
     }
 
 // ----------------------------------------------------------------------------