supl/locationomasuplprotocolhandler/protocolhandlerver1/src/epos_comasuplstartstate.cpp
changeset 39 3efc7a0e8755
parent 32 b12ea03c50a3
--- a/supl/locationomasuplprotocolhandler/protocolhandlerver1/src/epos_comasuplstartstate.cpp	Fri Jul 23 19:40:48 2010 +0530
+++ b/supl/locationomasuplprotocolhandler/protocolhandlerver1/src/epos_comasuplstartstate.cpp	Fri Aug 06 19:34:22 2010 +0530
@@ -522,6 +522,9 @@
 void COMASuplStartState::LocationIDRequestCompletedL(COMASuplLocationId* aLocationId,
 													TInt aErrorCode)
 	{
+    delete iLocationId;
+    iLocationId = NULL;
+    iLocationId = aLocationId;
 		iTrace->Trace(_L("COMASuplStartState::LocationIDRequestCompleted..."), KTraceFileName, __LINE__); 								
 		iGenerationStatus = EFalse;
 		if(aErrorCode!=KErrNone)
@@ -533,8 +536,6 @@
 						return;
 					}
 			}
-			
-		iLocationId = aLocationId;
 		
 		if(iECId)
 			{
@@ -1012,6 +1013,14 @@
 	aCurrentCellId.iLac = lRefLAC;
 	}
 }
+
+// -----------------------------------------------------------------------------
+// COMASuplStartState::SetStaleCellIdToUse
+// Set stale cell id.
+// 
+// (other items were commented in a header).
+// -----------------------------------------------------------------------------
+//
 void COMASuplStartState::SetStaleCellIdToUse(COMASuplLocationId* aLocationId)
     {
     if(iLocationId)