[vlc-commits] filter_chain: fix memory leaks

Hannes Domani git at videolan.org
Thu Aug 28 21:48:10 CEST 2014


vlc | branch: master | Hannes Domani <ssbssa at yahoo.de> | Thu Aug 28 13:25:37 2014 +0200| [231d1b6aa43a24078384e7a6663a93a1e6df4c5b] | committer: Rémi Denis-Courmont

filter_chain: fix memory leaks

Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=231d1b6aa43a24078384e7a6663a93a1e6df4c5b
---

 src/misc/filter_chain.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/misc/filter_chain.c b/src/misc/filter_chain.c
index 3e605a6..b0ad76e 100644
--- a/src/misc/filter_chain.c
+++ b/src/misc/filter_chain.c
@@ -298,6 +298,8 @@ void filter_chain_DeleteFilter( filter_chain_t *chain, filter_t *filter )
     FilterDeletePictures( &chained->filter, chained->pending );
 
     free( chained->mouse );
+    es_format_Clean( &filter->fmt_out );
+    es_format_Clean( &filter->fmt_in );
     vlc_object_release( filter );
     /* FIXME: check fmt_in/fmt_out consitency */
 }



More information about the vlc-commits mailing list