[vlc-commits] misc/filter_chain: fix leak of config_chain_t
Filip Roséen
git at videolan.org
Fri Sep 23 16:03:29 CEST 2016
vlc | branch: master | Filip Roséen <filip at atch.se> | Fri Sep 23 15:43:15 2016 +0200| [287539568996c44b881c1fe97e0442128f056f20] | committer: Thomas Guillem
misc/filter_chain: fix leak of config_chain_t
fixes #17429
Signed-off-by: Thomas Guillem <thomas at gllm.fr>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=287539568996c44b881c1fe97e0442128f056f20
---
src/misc/filter_chain.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/misc/filter_chain.c b/src/misc/filter_chain.c
index 7bb96d6..df71fa4 100644
--- a/src/misc/filter_chain.c
+++ b/src/misc/filter_chain.c
@@ -287,6 +287,10 @@ void filter_chain_DeleteFilter( filter_chain_t *chain, filter_t *filter )
free( chained->mouse );
es_format_Clean( &filter->fmt_out );
es_format_Clean( &filter->fmt_in );
+
+ if( filter->p_cfg )
+ config_ChainDestroy( filter->p_cfg );
+
vlc_object_release( filter );
/* FIXME: check fmt_in/fmt_out consitency */
}
More information about the vlc-commits
mailing list