Commit 8ccdd27c authored by Rafaël Carré's avatar Rafaël Carré

audiobargraph_a: simplify Close

parent a1465c46
......@@ -264,17 +264,14 @@ static void Close( vlc_object_t *p_this )
{
filter_t * p_filter = (filter_t *)p_this;
filter_sys_t *p_sys = p_filter->p_sys;
ValueDate_t* current;
var_Destroy( p_filter->p_libvlc, "audiobargraph_v-i_values" );
var_Destroy( p_filter->p_libvlc, "audiobargraph_v-alarm" );
p_sys->last = NULL;
while (p_sys->first != NULL) {
current = p_sys->first;
ValueDate_t *current = p_sys->first;
p_sys->first = p_sys->first->next;
free(current);
}
//free(p_sys->value);
free( p_filter->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