[FFmpeg-devel] [PATCH] libmpcodecs/vf_pp: import memleak fix from MPlayer.

Nicolas George nicolas.george at normalesup.org
Sat Mar 3 14:52:33 CET 2012


Signed-off-by: Nicolas George <nicolas.george at normalesup.org>
---
 libavfilter/libmpcodecs/vf_pp.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)


This should make FATE-valgrind red for vf_pp.


diff --git a/libavfilter/libmpcodecs/vf_pp.c b/libavfilter/libmpcodecs/vf_pp.c
index 3fa008c..b70eedc 100644
--- a/libavfilter/libmpcodecs/vf_pp.c
+++ b/libavfilter/libmpcodecs/vf_pp.c
@@ -79,6 +79,7 @@ static void uninit(struct vf_instance *vf){
             pp_free_mode(vf->priv->ppMode[i]);
     }
     if(vf->priv->context) pp_free_context(vf->priv->context);
+    free(vf->priv);
 }
 
 static int query_format(struct vf_instance *vf, unsigned int fmt){
-- 
1.7.9.1



More information about the ffmpeg-devel mailing list