summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYoann Lopes <yoann.lopes@theqtcompany.com>2015-08-18 16:13:17 +0200
committerYoann Lopes <yoann.lopes@theqtcompany.com>2015-08-19 11:32:35 +0000
commit28a20861fdf6df5fda1bad73296e18f7ae9966f1 (patch)
tree0e3cafbf0f7ced294eecfd5cf1a18633b4eaa1b8
parentcd3d5405225a328a0b2fa377823059723395a2ea (diff)
downloadqtmultimedia-28a20861fdf6df5fda1bad73296e18f7ae9966f1.tar.gz
qtmultimedia-28a20861fdf6df5fda1bad73296e18f7ae9966f1.tar.bz2
qtmultimedia-28a20861fdf6df5fda1bad73296e18f7ae9966f1.zip
QMediaPlayer: clear current playlist on deletion.
Makes sure the current playlist is unbound when QMediaPlayer is destroyed. Change-Id: If25efa67bf79af0326f6125d9615165a2c7dd6bb Reviewed-by: Jim Hodapp <jim.hodapp@canonical.com> Reviewed-by: Loïc Molinari <loic.molinari@canonical.com> Reviewed-by: Christian Stromme <christian.stromme@theqtcompany.com>
-rw-r--r--src/multimedia/playback/qmediaplayer.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/multimedia/playback/qmediaplayer.cpp b/src/multimedia/playback/qmediaplayer.cpp
index 902577ef..51be94c4 100644
--- a/src/multimedia/playback/qmediaplayer.cpp
+++ b/src/multimedia/playback/qmediaplayer.cpp
@@ -615,6 +615,8 @@ QMediaPlayer::~QMediaPlayer()
{
Q_D(QMediaPlayer);
+ d->disconnectPlaylist();
+
if (d->service) {
if (d->control)
d->service->releaseControl(d->control);