equal
deleted
inserted
replaced
749 |
749 |
750 HBufC* lmBuf = HBufC::NewLC( nameLen ); |
750 HBufC* lmBuf = HBufC::NewLC( nameLen ); |
751 |
751 |
752 TPtr name( lmBuf->Des() ); |
752 TPtr name( lmBuf->Des() ); |
753 readStream.ReadL( name, nameLen ); |
753 readStream.ReadL( name, nameLen ); |
754 |
754 |
|
755 CleanupStack::Pop( lmBuf );//ownership of lmBuf is transferred in the call to UpdateL/InsertL |
755 if ( aMessage.Int0() == EPosLmServerUpdateLandmarks ) |
756 if ( aMessage.Int0() == EPosLmServerUpdateLandmarks ) |
756 { |
757 { |
757 //coverity[freed_arg : FALSE] |
758 //coverity[freed_arg : FALSE] |
758 index.UpdateL( id, lmBuf ); |
759 index.UpdateL( id, lmBuf ); |
759 } |
760 } |
760 else |
761 else |
761 { |
762 { |
762 index.InsertL( id, lmBuf ); |
763 index.InsertL( id, lmBuf ); |
763 } |
764 } |
764 //coverity[pass_freed_arg : FALSE] |
765 //coverity[pass_freed_arg : FALSE] |
765 CleanupStack::Pop( lmBuf ); |
|
766 } |
766 } |
767 |
767 |
768 readStream.Close(); |
768 readStream.Close(); |
769 CleanupStack::PopAndDestroy( buf ); |
769 CleanupStack::PopAndDestroy( buf ); |
770 |
770 |