engine/src/ShowEngine.cpp
changeset 126 79076725bab9
parent 117 c2a99fe1afd0
child 128 e1dedb07817d
--- a/engine/src/ShowEngine.cpp	Thu Jul 22 10:22:28 2010 +0100
+++ b/engine/src/ShowEngine.cpp	Thu Jul 22 10:22:58 2010 +0100
@@ -44,9 +44,10 @@
 	delete iShowDownloading;
 	delete iMetaDataReader;
 	iApaSession.Close();
-	
+#ifdef ENABLE_MPX_INTEGRATION  	
 	if (iCollectionHelper)
 		delete iCollectionHelper;
+#endif
 	}
 
 EXPORT_C CShowEngine* CShowEngine::NewL(CPodcastModel& aPodcastModel)
@@ -236,12 +237,13 @@
 
 void CShowEngine::AddShowToMpxCollection(CShowInfo &aShowInfo)
 	{
+#ifdef ENABLE_MPX_INTEGRATION
 	if (!iCollectionHelper)
 		iCollectionHelper = CMPXCollectionHelperFactory::NewCollectionHelperL();
 	
 	// if this leaves, not much we can do anyway
 	TRAP_IGNORE(iCollectionHelper->AddL(aShowInfo.FileName(), this));
-
+#endif
 	}
 
 void CShowEngine::CompleteL(CHttpClient* /*aHttpClient*/, TInt aError)