mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-18 21:45:10 +00:00
avfilter/af_adelay: use av_freep(), do not leave stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
aba873bbd0
commit
2d6f31730c
@ -246,7 +246,7 @@ static av_cold void uninit(AVFilterContext *ctx)
|
|||||||
int i;
|
int i;
|
||||||
|
|
||||||
for (i = 0; i < s->nb_delays; 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);
|
av_freep(&s->chandelay);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user