emailservices/emailclientapi/src/emailfolder.cpp
branchRCL_3
changeset 29 6b8f3b30d0ec
parent 24 b5fbb9b25d57
child 63 d189ee25cf9d
--- a/emailservices/emailclientapi/src/emailfolder.cpp	Tue May 25 12:23:16 2010 +0300
+++ b/emailservices/emailclientapi/src/emailfolder.cpp	Wed Jun 09 09:22:57 2010 +0300
@@ -195,16 +195,15 @@
         const RSortCriteriaArray& aCriteria )
     {
     RArray<TFSMailSortCriteria> sortCriterias;
-    CleanupClosePushL( sortCriterias );
     CEmailFolder::ToFsSortCriteriaL( aCriteria, sortCriterias );
     
     MFSMailIterator* fsIter = iFolder->ListMessagesL(EFSMsgDataEnvelope, sortCriterias);
     TUint count = iFolder->GetMessageCount();
     
-    CleanupStack::PopAndDestroy(); // sortCriterias
     CMessageIterator* iter = CMessageIterator::NewL( 
         fsIter, iPluginData, count );
     
+    sortCriterias.Reset();
     return iter;
     }