Browse Source

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

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.5
Michael Niedermayer 11 years ago
parent
commit
2d6f31730c
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavfilter/af_adelay.c

+ 1
- 1
libavfilter/af_adelay.c View 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);
}



Loading…
Cancel
Save