[vlc-commits] stream_filter: smooth: missing full cleanup/fix leak
Francois Cartegnie
git at videolan.org
Wed Oct 29 11:48:46 CET 2014
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Oct 29 10:45:16 2014 +0100| [a95ac7be77bb40bbf6325411df5f42c5cf6d0b4d] | committer: Francois Cartegnie
stream_filter: smooth: missing full cleanup/fix leak
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a95ac7be77bb40bbf6325411df5f42c5cf6d0b4d
---
modules/stream_filter/smooth/utils.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/modules/stream_filter/smooth/utils.c b/modules/stream_filter/smooth/utils.c
index 594483f..e51bc22 100644
--- a/modules/stream_filter/smooth/utils.c
+++ b/modules/stream_filter/smooth/utils.c
@@ -77,6 +77,10 @@ quality_level_t * ql_New( void )
void ql_Free( quality_level_t *qlevel )
{
free( qlevel->CodecPrivateData );
+ FOREACH_ARRAY( custom_attrs_t *p_attrs, qlevel->custom_attrs )
+ free( p_attrs->psz_key );
+ free( p_attrs->psz_value );
+ FOREACH_END()
ARRAY_RESET(qlevel->custom_attrs);
free( qlevel );
qlevel = NULL;
More information about the vlc-commits
mailing list