[vlc-commits] audiobargraph_a: simplify Close
Rafaël Carré
git at videolan.org
Wed Apr 16 14:46:38 CEST 2014
vlc | branch: master | Rafaël Carré <funman at videolan.org> | Wed Apr 16 13:45:56 2014 +0200| [8ccdd27c8c49a5e8199ba4fb50d7cd8d2a3284e7] | committer: Rafaël Carré
audiobargraph_a: simplify Close
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8ccdd27c8c49a5e8199ba4fb50d7cd8d2a3284e7
---
modules/audio_filter/audiobargraph_a.c | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/modules/audio_filter/audiobargraph_a.c b/modules/audio_filter/audiobargraph_a.c
index 40df55c..53cba3e 100644
--- a/modules/audio_filter/audiobargraph_a.c
+++ b/modules/audio_filter/audiobargraph_a.c
@@ -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 );
}
More information about the vlc-commits
mailing list