avfilter/af_adelay: use av_freep(), do not leave stale pointers in memory
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 7 Oct 2014 11:44:26 +0000 (13:44 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 7 Oct 2014 11:44:26 +0000 (13:44 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavfilter/af_adelay.c

index cfc6b1f..ef60f43 100644 (file)
@@ -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);
 }