harvester/server/src/ondemandao.cpp
branchRCL_3
changeset 63 e538444823de
parent 53 29d87345eaeb
--- a/harvester/server/src/ondemandao.cpp	Wed Sep 15 12:40:59 2010 +0300
+++ b/harvester/server/src/ondemandao.cpp	Wed Oct 13 15:02:02 2010 +0300
@@ -64,7 +64,6 @@
 	if( iMdEHarvesterSession )
 		{
 		delete iMdEHarvesterSession;
-		iMdEHarvesterSession = NULL;
 		}
 	// Delete instance variables if any
 	}
@@ -72,7 +71,7 @@
 void COnDemandAO::DoCancel()
 	{
 	WRITELOG("COnDemandAO::DoCancel");
-	iMdEHarvesterSession->CancelHarvestingPrioritizationObserver();
+	iMdEHarvesterSession->CancelHarvestingPrioritizationObserver ();
 	}
 
 void COnDemandAO::StartL()
@@ -80,7 +79,7 @@
 	WRITELOG("COnDemandAO::StartL");
 	// Cancel any request, just to be sure
 	Cancel ();
-	iMdEHarvesterSession->SetHarvestingPrioritizationChunkL( 16384 );
+	iMdEHarvesterSession->SetHarvestingPrioritizationChunkL ( 16384 );
 	WaitHarvestingRequest ();
 	}
 
@@ -116,14 +115,8 @@
 							hd->SetEventType( EHarvesterEdit );
 							hd->SetObjectType( EFastHarvest );
 							queue.Remove( k );
-
-							if(queue.Insert( hd, 0 ) != KErrNone)
-							    {
-                                delete hd;
-                                hd = NULL;
-							    }
-							
-                            found = ETrue;
+							queue.Insert( hd, 0 );
+							found = ETrue;
 							}							
 						}
 					}