summaryrefslogtreecommitdiff
authorsimon <simon>2002-12-02 23:33:37 (UTC)
committer simon <simon>2002-12-02 23:33:37 (UTC)
commitc3c95ff297355f7024c15134bbc1d15d340bf8fd (patch) (side-by-side diff)
treead5ed1eef8ad82d53aef634bfa4b247210200c20
parent22e232bdb4bae5e28013a4d14bfda3c068827557 (diff)
downloadopie-c3c95ff297355f7024c15134bbc1d15d340bf8fd.zip
opie-c3c95ff297355f7024c15134bbc1d15d340bf8fd.tar.gz
opie-c3c95ff297355f7024c15134bbc1d15d340bf8fd.tar.bz2
- I better be a good boy and delete what I allocate :)
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/multimedia/opieplayer2/mediaplayer.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/noncore/multimedia/opieplayer2/mediaplayer.cpp b/noncore/multimedia/opieplayer2/mediaplayer.cpp
index 8acc488..06b1a04 100644
--- a/noncore/multimedia/opieplayer2/mediaplayer.cpp
+++ b/noncore/multimedia/opieplayer2/mediaplayer.cpp
@@ -51,24 +51,26 @@ MediaPlayer::MediaPlayer( PlayListWidget &_playList, MediaPlayerState &_mediaPla
connect( &mediaPlayerState, SIGNAL( prev() ), this, SLOT( prev() ) );
connect( &mediaPlayerState, SIGNAL( blankToggled( bool ) ), this, SLOT ( blank( bool ) ) );
volControl = new VolumeControl;
Config cfg( "OpiePlayer" );
cfg.setGroup("PlayList");
QString currentPlaylist = cfg.readEntry( "CurrentPlaylist", "default");
playList.setCaption( tr( "OpiePlayer: " ) + QFileInfo(currentPlaylist).baseName() );
}
MediaPlayer::~MediaPlayer() {
delete xineControl;
+ delete audioUI;
+ delete videoUI;
delete volControl;
}
void MediaPlayer::pauseCheck( bool b ) {
if ( b && !mediaPlayerState.isPlaying() ) {
mediaPlayerState.setPaused( FALSE );
}
}
void MediaPlayer::play() {
mediaPlayerState.setPlaying( FALSE );
mediaPlayerState.setPlaying( TRUE );