Commit d1fdb577 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt: correctly release vout objects

Close #6118
parent 35e8ad40
......@@ -289,11 +289,16 @@ void AspectRatioComboBox::updateRatios()
QString( val_list.p_list->p_values[i].psz_string ) );
setEnabled( true );
var_FreeList( &val_list, &text_list );
vlc_object_release( p_vout );
}
void AspectRatioComboBox::updateAspectRatio( int x )
{
vout_thread_t* p_vout = THEMIM->getVout();
if( p_vout && x >= 0 )
{
var_SetString( p_vout, "aspect-ratio", qtu( itemData(x).toString() ) );
vlc_object_release( p_vout );
}
}
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