emailservices/emailclientapi/src/emailfolder.cpp
changeset 76 38bf5461e270
parent 62 a8c646b56683
--- a/emailservices/emailclientapi/src/emailfolder.cpp	Thu Sep 30 11:43:07 2010 +0300
+++ b/emailservices/emailclientapi/src/emailfolder.cpp	Thu Oct 14 17:33:43 2010 +0300
@@ -184,7 +184,9 @@
         const TEntryId id = fsfolder->GetFolderId().Id();
         const TFolderId folderId( id, iFolderId.iMailboxId.iId );
         MEmailFolder* folder = CEmailFolder::NewL( iPluginData, folderId, folders[i] );
+        CleanupStack::PushL(folder);
         aSubfolders.AppendL( folder );
+        CleanupStack::Pop(folder);
         }
     CleanupStack::Pop( &folders );
     folders.Close();