[vlc-commits] Qt4: fix some leaks

Rémi Denis-Courmont git at videolan.org
Tue Jun 23 23:36:18 CEST 2015


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Jun 24 00:36:04 2015 +0300| [748d53d9ce2f4d2892632ad25abd7a9b717737e9] | committer: Rémi Denis-Courmont

Qt4: fix some leaks

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=748d53d9ce2f4d2892632ad25abd7a9b717737e9
---

 modules/gui/qt4/components/playlist/standardpanel.cpp |    2 +-
 modules/gui/qt4/util/input_slider.cpp                 |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/gui/qt4/components/playlist/standardpanel.cpp b/modules/gui/qt4/components/playlist/standardpanel.cpp
index 07ab62b..4a6f223 100644
--- a/modules/gui/qt4/components/playlist/standardpanel.cpp
+++ b/modules/gui/qt4/components/playlist/standardpanel.cpp
@@ -401,7 +401,7 @@ void StandardPLPanel::popupAction( QAction *action )
 
 QMenu* StandardPLPanel::viewSelectionMenu( StandardPLPanel *panel )
 {
-    QMenu *viewMenu = new QMenu( qtr( "Playlist View Mode" ) );
+    QMenu *viewMenu = new QMenu( qtr( "Playlist View Mode" ), panel );
     QSignalMapper *viewSelectionMapper = new QSignalMapper( viewMenu );
     CONNECT( viewSelectionMapper, mapped( int ), panel, showView( int ) );
 
diff --git a/modules/gui/qt4/util/input_slider.cpp b/modules/gui/qt4/util/input_slider.cpp
index 5819e47..756c16f 100644
--- a/modules/gui/qt4/util/input_slider.cpp
+++ b/modules/gui/qt4/util/input_slider.cpp
@@ -144,7 +144,7 @@ SeekSlider::SeekSlider( Qt::Orientation q, QWidget *_parent, bool _static )
     animLoadingOut->setEndValue( 0.0 );
     animLoadingOut->setEasingCurve( QEasingCurve::OutBounce );
 
-    animLoading = new QSequentialAnimationGroup();
+    animLoading = new QSequentialAnimationGroup( this );
     animLoading->addAnimation( animLoadingIn );
     animLoading->addAnimation( animLoadingOut );
     animLoading->setLoopCount( -1 );



More information about the vlc-commits mailing list