[FFmpeg-cvslog] avfilter/af_adelay: use av_freep(), do not leave stale pointers in memory

Michael Niedermayer git at videolan.org
Tue Oct 7 14:28:29 CEST 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | 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 <michaelni at gmx.at>

> 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);
 }
 



More information about the ffmpeg-cvslog mailing list