application/src/PodcastFeedView.cpp
branchRCL_3
changeset 368 b131f7696342
parent 341 a648d7ca5e27
child 369 c683165bec63
--- a/application/src/PodcastFeedView.cpp	Sun Nov 14 13:05:37 2010 +0000
+++ b/application/src/PodcastFeedView.cpp	Tue Nov 16 10:26:34 2010 +0000
@@ -121,11 +121,13 @@
     
 CPodcastFeedView::~CPodcastFeedView()
     {
+	DP("CPodcastFeedView::~CPodcastFeedView BEGIN");
 	iPodcastModel.FeedEngine().RemoveObserver(this);
 	delete iFeedsFormat;
 	delete iNeverUpdated;
 	delete iUpdater;
 	iFeedIdForIconArray.Close();
+	DP("CPodcastFeedView::~CPodcastFeedView END");
     }
 
 void CPodcastFeedView::UpdateItemL(TInt aIndex)
@@ -181,7 +183,8 @@
 	DP("CPodcastFeedView::DoActivateL BEGIN");
 	CPodcastListView::DoActivateL(aPrevViewId, aCustomMessageId, aCustomMessage);
 	
-	
+	iPodcastModel.ShowEngine().ExpireOldShows();
+
 	UpdateListboxItemsL();		
 	UpdateToolbar();
 	
@@ -655,7 +658,7 @@
 void CPodcastFeedView::ShowItem(TUint aUid)
 	{
 	TInt listIndex = -1;
-	for (TUint i=0;i<iItemIdArray.Count();i++)
+	for (TInt i=0;i<iItemIdArray.Count();i++)
 		{
 		if (iItemIdArray[i] == aUid)
 			{