videocollection/mpxmyvideoscollection/src/vcxmyvideoscollectionutil.cpp
changeset 66 adb51f74b890
parent 40 13331705e488
equal deleted inserted replaced
63:4707a0db12f6 66:adb51f74b890
   178     CMPXMediaArray* fromArray = aFromList.Value<CMPXMediaArray>( KMPXMediaArrayContents );
   178     CMPXMediaArray* fromArray = aFromList.Value<CMPXMediaArray>( KMPXMediaArrayContents );
   179     TInt count = fromArray->Count();
   179     TInt count = fromArray->Count();
   180     for ( TInt i = 0; i < count; i++ )
   180     for ( TInt i = 0; i < count; i++ )
   181         {
   181         {
   182         media = CMPXMedia::NewL( *(fromArray->AtL( i )) ); // points to same shared memory
   182         media = CMPXMedia::NewL( *(fromArray->AtL( i )) ); // points to same shared memory
       
   183         CleanupStack::PushL( media );
   183         toArray->AppendL( media ); //ownership moves
   184         toArray->AppendL( media ); //ownership moves
       
   185         CleanupStack::Pop( media );
   184         }
   186         }
   185     }
   187     }
   186 
   188 
   187 // ---------------------------------------------------------------------------
   189 // ---------------------------------------------------------------------------
   188 // This helper function converts drive letter to drive number
   190 // This helper function converts drive letter to drive number