mpxplugins/viewplugins/views/podcastplaybackview/src/mpxpodcastplaybackviewimp.cpp
changeset 5 2a40e88564c8
parent 0 ff3acec5bc43
child 13 c8156a91d13c
equal deleted inserted replaced
4:beaa16f65879 5:2a40e88564c8
   521             if ( s )
   521             if ( s )
   522                 {
   522                 {
   523                 CMPXCollectionPlaylist* playlist = s->PlaylistL();
   523                 CMPXCollectionPlaylist* playlist = s->PlaylistL();
   524                 if ( playlist )
   524                 if ( playlist )
   525                     {
   525                     {
       
   526                     CleanupStack::PushL( playlist );
   526                     if ( playlist->Count() > 0 && pausePlayControl )
   527                     if ( playlist->Count() > 0 && pausePlayControl )
   527                         {
   528                         {
   528                         TMPXPlaybackState state = iPlaybackUtility->StateL();
   529                         TMPXPlaybackState state = iPlaybackUtility->StateL();
   529                         if ((state == EPbStateInitialising) || (state == EPbStatePlaying))
   530                         if ((state == EPbStateInitialising) || (state == EPbStatePlaying))
   530                            {
   531                            {
   533                         else
   534                         else
   534                            {
   535                            {
   535                            pausePlayControl->SetCurrentState(1, ETrue);
   536                            pausePlayControl->SetCurrentState(1, ETrue);
   536                            }
   537                            }
   537                         }
   538                         }
       
   539                     CleanupStack::PopAndDestroy( playlist );
   538                     }
   540                     }
   539                 delete playlist;
       
   540                 }
   541                 }
   541             }
   542             }
   542         }
   543         }
   543     }
   544     }
   544 
   545