Commit 2d285814 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt: correctly release vout objects

Close #6118
(cherry picked from commit d1fdb577189ecc763f81a691ed28e601ff2438e2)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 8b76aa13
...@@ -289,11 +289,16 @@ void AspectRatioComboBox::updateRatios() ...@@ -289,11 +289,16 @@ void AspectRatioComboBox::updateRatios()
QString( val_list.p_list->p_values[i].psz_string ) ); QString( val_list.p_list->p_values[i].psz_string ) );
setEnabled( true ); setEnabled( true );
var_FreeList( &val_list, &text_list ); var_FreeList( &val_list, &text_list );
vlc_object_release( p_vout );
} }
void AspectRatioComboBox::updateAspectRatio( int x ) void AspectRatioComboBox::updateAspectRatio( int x )
{ {
vout_thread_t* p_vout = THEMIM->getVout(); vout_thread_t* p_vout = THEMIM->getVout();
if( p_vout && x >= 0 ) if( p_vout && x >= 0 )
{
var_SetString( p_vout, "aspect-ratio", qtu( itemData(x).toString() ) ); 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