summaryrefslogtreecommitdiffstats
path: root/src/plugins/avfoundation/mediaplayer/avfvideowindowcontrol.mm
diff options
context:
space:
mode:
authorYoann Lopes <yoann.lopes@digia.com>2014-09-01 14:19:53 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-09-01 14:19:53 +0200
commitbc1fa076c944c6af3250cb7210190da42a4de6ea (patch)
treeb6948fa95abbdd4ffbb30b76c7d3c09ae07e51db /src/plugins/avfoundation/mediaplayer/avfvideowindowcontrol.mm
parent0c3438c9a12fbc607eada8f938cf0ad8fdea374d (diff)
parent659f238bbbe040cce1bdf900f8f5500845ca8727 (diff)
Merge "Merge remote-tracking branch 'origin/5.3' into 5.4" into refs/staging/5.4v5.4.0-alpha1
Diffstat (limited to 'src/plugins/avfoundation/mediaplayer/avfvideowindowcontrol.mm')
-rw-r--r--src/plugins/avfoundation/mediaplayer/avfvideowindowcontrol.mm4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/avfoundation/mediaplayer/avfvideowindowcontrol.mm b/src/plugins/avfoundation/mediaplayer/avfvideowindowcontrol.mm
index 17fc94de7..8e96d732f 100644
--- a/src/plugins/avfoundation/mediaplayer/avfvideowindowcontrol.mm
+++ b/src/plugins/avfoundation/mediaplayer/avfvideowindowcontrol.mm
@@ -61,8 +61,10 @@ AVFVideoWindowControl::AVFVideoWindowControl(QObject *parent)
AVFVideoWindowControl::~AVFVideoWindowControl()
{
- if (m_playerLayer)
+ if (m_playerLayer) {
+ [m_playerLayer removeFromSuperlayer];
[m_playerLayer release];
+ }
}
WId AVFVideoWindowControl::winId() const