supl/locationomasuplprotocolhandler/asnconverterpluginapi/src/epos_comasupllocationidver2.cpp
branchRCL_3
changeset 44 2b4ea9893b66
parent 0 667063e416a2
child 45 6b6920c56e2f
--- a/supl/locationomasuplprotocolhandler/asnconverterpluginapi/src/epos_comasupllocationidver2.cpp	Thu Aug 19 10:20:18 2010 +0300
+++ b/supl/locationomasuplprotocolhandler/asnconverterpluginapi/src/epos_comasupllocationidver2.cpp	Tue Aug 31 15:37:04 2010 +0300
@@ -85,6 +85,7 @@
 EXPORT_C COMASuplLocationIdVer2* COMASuplLocationIdVer2::CloneL()
     {
     COMASuplLocationIdVer2* retLocationId = COMASuplLocationIdVer2::NewL();
+    CleanupStack::PushL( retLocationId );
     if(iIsV2ExtnSet)
         {
         retLocationId->COMASuplLocationIdVer2::SetVer2CellInfo(iOMASuplVer2CellInfoExtn);
@@ -111,6 +112,7 @@
             break;
                     
         }
+    CleanupStack::Pop(retLocationId);
     return retLocationId;
     }
 // -----------------------------------------------------------------------------
@@ -146,7 +148,8 @@
 // TOMASuplReportedLocation::SetLocationData(TOMASuplLocationData aLocationData)
 // (other items were commented in a header).
 // ---------------------------------------------------------------------------
-//
+
+//coverity[pass_by_value]
 EXPORT_C void TOMASuplReportedLocation::SetLocationData(TOMASuplLocationData aLocationData) 
     {
     iLocationData = aLocationData;