[vlc-commits] qt4: playlist: Fix leak

Hugo Beauzée-Luyssen git at videolan.org
Wed Feb 17 16:07:04 CET 2016


vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Wed Feb 17 16:06:26 2016 +0100| [f2684ca071b12eda0ab9a350fd0e907b695f8300] | committer: Hugo Beauzée-Luyssen

qt4: playlist: Fix leak

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

 modules/gui/qt4/components/playlist/standardpanel.cpp |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/gui/qt4/components/playlist/standardpanel.cpp b/modules/gui/qt4/components/playlist/standardpanel.cpp
index 1178647..2f8a675 100644
--- a/modules/gui/qt4/components/playlist/standardpanel.cpp
+++ b/modules/gui/qt4/components/playlist/standardpanel.cpp
@@ -244,7 +244,7 @@ bool StandardPLPanel::popup( const QPoint &point )
     /* Playlist sorting */
     if ( model->isSupportedAction( VLCModelSubInterface::ACTION_SORT, index ) )
     {
-        QMenu *sortingMenu = new QMenu( qtr( "Sort by" ) );
+        QMenu *sortingMenu = new QMenu( qtr( "Sort by" ), &menu );
         /* Choose what columns to show in sorting menu, not sure if this should be configurable*/
         QList<int> sortingColumns;
         sortingColumns << COLUMN_TITLE << COLUMN_ARTIST << COLUMN_ALBUM << COLUMN_TRACK_NUMBER << COLUMN_URI;
@@ -263,7 +263,7 @@ bool StandardPLPanel::popup( const QPoint &point )
     }
 
     /* Zoom */
-    QMenu *zoomMenu = new QMenu( qtr( "Display size" ) );
+    QMenu *zoomMenu = new QMenu( qtr( "Display size" ), &menu );
     zoomMenu->addAction( qtr( "Increase" ), this, SLOT( increaseZoom() ) );
     zoomMenu->addAction( qtr( "Decrease" ), this, SLOT( decreaseZoom() ) );
     menu.addMenu( zoomMenu );



More information about the vlc-commits mailing list