diff -r 29dbbeac905d -r 0c2046328c85 locationrequestmgmt/networkrequesthandler/src/ngmessageswitch.cpp --- a/locationrequestmgmt/networkrequesthandler/src/ngmessageswitch.cpp Thu Aug 19 11:17:26 2010 +0300 +++ b/locationrequestmgmt/networkrequesthandler/src/ngmessageswitch.cpp Tue Aug 31 16:38:06 2010 +0300 @@ -135,12 +135,7 @@ void CNGMessageSendBuffer::BufferData(TLbsNetInternalMsgBase* aData) { // Add the data to the buffer - TInt err = iBuffer.Append(aData); - if( err != KErrNone ) - { - LBSLOG_ERR2(ELogP3, "CNGMessageSendBuffer::BufferData Append failed: %d", err); - delete aData; - } + iBuffer.Append(aData); } void CNGMessageSendBuffer::BufferEmergencyData(TLbsNetInternalMsgBase* aData) @@ -515,11 +510,8 @@ // not being saved. Note we do enure that the mobiles position // does get sent out to the network - its juts means that the callback // that delivers the REF pos to the privacy system does not happen! - TInt err = iRefPosBuffer.Append(item); - if( KErrNone != err ) - { - LBSLOG_ERR(ELogP3, "CNGMessageSwitch::ProcessNetChannelMessage: iRefPosBuffer.Append Failed!!"); - } + iRefPosBuffer.Append(item); + for (TInt i = 0; i < count; i++) { iObservers[i]->OnNetLocReferenceUpdate(msg->SessionId(), positionInfo); @@ -541,12 +533,7 @@ item->iSessionId = msg->SessionId(); Mem::Copy(&item->iPosInfo, &positionInfo, positionInfo.PositionClassSize()); - TInt err = iFNPPosBuffer.Append(item); // here, ownership passes to pointer array! - if( KErrNone != err ) - { - delete item; - LBSLOG_ERR(ELogP3, "CNGMessageSwitch::ProcessNetChannelMessage: iFNPPosBuffer.Append Failed!!"); - } + iFNPPosBuffer.Append(item); // here, ownership passes to pointer array! } for (TInt i = 0; i < count; i++) {