ximpfw/core/srcutils/ximpobjecthelpers.cpp
branchRCL_3
changeset 22 113b91e0a2ad
parent 21 cfd5c2994f10
equal deleted inserted replaced
21:cfd5c2994f10 22:113b91e0a2ad
    57 // TXIMPHBuf8Packer::UnPackArrayL()
    57 // TXIMPHBuf8Packer::UnPackArrayL()
    58 // -----------------------------------------------------------------------------
    58 // -----------------------------------------------------------------------------
    59 //
    59 //
    60 EXPORT_C void TXIMPHBuf8Packer::UnPackArrayL( RPointerArray< HBufC8 >& aBufferArray, const TDesC8& aPack  )
    60 EXPORT_C void TXIMPHBuf8Packer::UnPackArrayL( RPointerArray< HBufC8 >& aBufferArray, const TDesC8& aPack  )
    61     {
    61     {
       
    62 	CleanupClosePushL( aBufferArray );
    62 	// No reset
    63 	// No reset
    63     if ( ! aPack.Length() )
    64     if ( ! aPack.Length() )
    64         {
    65         {
    65         // empty, don't attempt to unpack
    66         // empty, don't attempt to unpack
    66         return;
    67         return;
    81         
    82         
    82         rs.ReadL( theObjectPtr, length );
    83         rs.ReadL( theObjectPtr, length );
    83         aBufferArray.AppendL( theObject );
    84         aBufferArray.AppendL( theObject );
    84 		}
    85 		}
    85     CleanupStack::Pop( objCount ); // all the objects
    86     CleanupStack::Pop( objCount ); // all the objects
    86     CleanupStack::PopAndDestroy(); // rs    
    87     CleanupStack::PopAndDestroy(); // rs   
       
    88     CleanupStack::Pop( &aBufferArray );
    87     }
    89     }
    88 // End of file
    90 // End of file