smsprotocols/smsstack/wapprot/Src/wappstor.cpp
branchRCL_3
changeset 21 2492a6e4aed7
parent 14 7ef16719d8cb
child 24 6638e7f4bd8f
child 42 3adadc800673
equal deleted inserted replaced
17:3f227a47ad75 21:2492a6e4aed7
    48 
    48 
    49     CArrayPtrFlat<CWapDatagram::TSegmentData>* segmentArray = new
    49     CArrayPtrFlat<CWapDatagram::TSegmentData>* segmentArray = new
    50         (ELeave) CArrayPtrFlat<CWapDatagram::TSegmentData> (8);
    50         (ELeave) CArrayPtrFlat<CWapDatagram::TSegmentData> (8);
    51 
    51 
    52     CleanupStack::PushL(segmentArray);
    52     CleanupStack::PushL(segmentArray);
       
    53 	// coverity[double_push]
    53     CleanupResetAndDestroyPushL(*segmentArray);
    54     CleanupResetAndDestroyPushL(*segmentArray);
    54     
    55     
    55     TBool isComplete = aDatagram.IsComplete();
    56     TBool isComplete = aDatagram.IsComplete();
    56 
    57 
    57     // count of incomplete WAP short messages
    58     // count of incomplete WAP short messages
   203         (ELeave) CArrayPtrFlat<CWapDatagram::TSegmentData> (8);
   204         (ELeave) CArrayPtrFlat<CWapDatagram::TSegmentData> (8);
   204     
   205     
   205     // here we need to push 'segmentArray' pointer to the cleanup stack, since it's a heap allocation (pointer must be deleted)
   206     // here we need to push 'segmentArray' pointer to the cleanup stack, since it's a heap allocation (pointer must be deleted)
   206     // CleanupResetAndDestroyPushL() just trigers ResetAndDestroy() to be called on CleanupStack::PopAndDestroy()     
   207     // CleanupResetAndDestroyPushL() just trigers ResetAndDestroy() to be called on CleanupStack::PopAndDestroy()     
   207     CleanupStack::PushL(segmentArray);
   208     CleanupStack::PushL(segmentArray);
       
   209 	// coverity[double_push]
   208     CleanupResetAndDestroyPushL(*segmentArray);
   210     CleanupResetAndDestroyPushL(*segmentArray);
   209 
   211 
   210     // defect fix for EDNJJUN-4WYJGP
   212     // defect fix for EDNJJUN-4WYJGP
   211     // Unable to send sms cause sms*.dat is corrupted
   213     // Unable to send sms cause sms*.dat is corrupted
   212     TRAPD(ret, InternalizeEntryL(Entries()[aIndex].DataStreamId(), aDatagram,*segmentArray));
   214     TRAPD(ret, InternalizeEntryL(Entries()[aIndex].DataStreamId(), aDatagram,*segmentArray));