Commit e584696c authored by Rafaël Carré's avatar Rafaël Carré

audiobargraph_v: simplify Close

parent 6e507987
...@@ -915,7 +915,6 @@ static void Close( vlc_object_t *p_this ) ...@@ -915,7 +915,6 @@ static void Close( vlc_object_t *p_this )
{ {
filter_t *p_filter = (filter_t *)p_this; filter_t *p_filter = (filter_t *)p_this;
filter_sys_t *p_sys = p_filter->p_sys; filter_sys_t *p_sys = p_filter->p_sys;
BarGraph_t *p_BarGraph = &(p_sys->p_BarGraph);
for( int i = 0; ppsz_filter_callbacks[i]; i++ ) for( int i = 0; ppsz_filter_callbacks[i]; i++ )
var_DelCallback( p_filter, ppsz_filter_callbacks[i], var_DelCallback( p_filter, ppsz_filter_callbacks[i],
...@@ -933,12 +932,10 @@ static void Close( vlc_object_t *p_this ) ...@@ -933,12 +932,10 @@ static void Close( vlc_object_t *p_this )
vlc_mutex_destroy( &p_sys->lock ); vlc_mutex_destroy( &p_sys->lock );
if( p_BarGraph->p_pic ) if( p_sys->p_BarGraph.p_pic )
{ picture_Release( p_sys->p_BarGraph.p_pic );
picture_Release( p_BarGraph->p_pic );
p_BarGraph->p_pic = NULL; free( p_sys->p_BarGraph.i_values );
}
free( p_BarGraph->i_values );
free( p_sys ); free( p_sys );
} }
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