Skip to content

Commit f2684ca

Browse files
committed
qt4: playlist: Fix leak
1 parent 0cff561 commit f2684ca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/gui/qt4/components/playlist/standardpanel.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ bool StandardPLPanel::popup( const QPoint &point )
244244
/* Playlist sorting */
245245
if ( model->isSupportedAction( VLCModelSubInterface::ACTION_SORT, index ) )
246246
{
247-
QMenu *sortingMenu = new QMenu( qtr( "Sort by" ) );
247+
QMenu *sortingMenu = new QMenu( qtr( "Sort by" ), &menu );
248248
/* Choose what columns to show in sorting menu, not sure if this should be configurable*/
249249
QList<int> sortingColumns;
250250
sortingColumns << COLUMN_TITLE << COLUMN_ARTIST << COLUMN_ALBUM << COLUMN_TRACK_NUMBER << COLUMN_URI;
@@ -263,7 +263,7 @@ bool StandardPLPanel::popup( const QPoint &point )
263263
}
264264

265265
/* Zoom */
266-
QMenu *zoomMenu = new QMenu( qtr( "Display size" ) );
266+
QMenu *zoomMenu = new QMenu( qtr( "Display size" ), &menu );
267267
zoomMenu->addAction( qtr( "Increase" ), this, SLOT( increaseZoom() ) );
268268
zoomMenu->addAction( qtr( "Decrease" ), this, SLOT( decreaseZoom() ) );
269269
menu.addMenu( zoomMenu );

0 commit comments

Comments
 (0)