Commit f21febe7 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

qt: fix invalid free if aout_DevicesList() fails

parent 13260b30
......@@ -1547,6 +1547,9 @@ void VLCMenuBar::updateAudioDevice( intf_thread_t * p_intf, audio_output_t *p_ao
current->clear();
int i_result = aout_DevicesList( p_aout, &ids, &names);
if( i_result < 0 )
return;
selected = aout_DeviceGet( p_aout );
QActionGroup *actionGroup = new QActionGroup(current);
......
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