ffmpeg | branch: master | Michael Niedermayer <[email protected]> | Tue Oct  7 
13:44:26 2014 +0200| [2d6f31730c60bd15f2c22ca3ca24aae49a34eddd] | committer: 
Michael Niedermayer

avfilter/af_adelay: use av_freep(), do not leave stale pointers in memory

Signed-off-by: Michael Niedermayer <[email protected]>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2d6f31730c60bd15f2c22ca3ca24aae49a34eddd
---

 libavfilter/af_adelay.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/af_adelay.c b/libavfilter/af_adelay.c
index cfc6b1f..ef60f43 100644
--- a/libavfilter/af_adelay.c
+++ b/libavfilter/af_adelay.c
@@ -246,7 +246,7 @@ static av_cold void uninit(AVFilterContext *ctx)
     int i;
 
     for (i = 0; i < s->nb_delays; i++)
-        av_free(s->chandelay[i].samples);
+        av_freep(&s->chandelay[i].samples);
     av_freep(&s->chandelay);
 }
 

_______________________________________________
ffmpeg-cvslog mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

Reply via email to