Commit 87d62e28 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

qt: menus: Fix memory leak

Adding an action to an actionGroup doesn't change the ownership
parent 1cf21dd4
......@@ -1557,7 +1557,7 @@ void VLCMenuBar::updateAudioDevice( intf_thread_t * p_intf, audio_output_t *p_ao
for( int i = 0; i < i_result; i++ )
{
action = new QAction( qfue( names[i] ), NULL );
action = new QAction( qfue( names[i] ), actionGroup );
action->setData( ids[i] );
action->setCheckable( true );
if( (selected && !strcmp( ids[i], selected ) ) ||
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment