messagingappbase/mce/src/MceMainViewListItemArray.cpp
branchRCL_3
changeset 17 caea42e26caa
parent 2 0bf1d54f37d9
child 21 c6838af47512
--- a/messagingappbase/mce/src/MceMainViewListItemArray.cpp	Fri Feb 19 22:47:38 2010 +0200
+++ b/messagingappbase/mce/src/MceMainViewListItemArray.cpp	Fri Mar 12 15:42:19 2010 +0200
@@ -1184,6 +1184,7 @@
     TInt emailcount=0;
     TInt itemcount;
     CMsvEntry* entry = iSession->GetEntryL( serviceId );
+    CleanupStack::PushL( entry );
     itemcount=entry->Count();
       
     //Find email messages 
@@ -1244,7 +1245,7 @@
         CleanupStack::PopAndDestroy( pop3selection );
         }
     CleanupStack::PopAndDestroy( smtpselection );
-
+    CleanupStack::PopAndDestroy( entry );
     return visiblecount; 
     }
 //  End of File