--- 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;
}