mpxplugins/viewplugins/views/podcastplaybackview/src/mpxpodcastplaybackviewimp.cpp
equal
deleted
inserted
replaced
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 |