lavfi/aecho: fix invalid free

Signed-off-by: Paul B Mahol <onemda@gmail.com>
pull/27/head
Paul B Mahol 12 years ago
parent f486d7e924
commit fc6ca37316
  1. 4
      libavfilter/af_aecho.c

@ -93,7 +93,7 @@ static av_cold void uninit(AVFilterContext *ctx)
av_freep(&s->samples); av_freep(&s->samples);
if (s->delayptrs) if (s->delayptrs)
av_freep(s->delayptrs[0]); av_freep(&s->delayptrs[0]);
av_freep(&s->delayptrs); av_freep(&s->delayptrs);
} }
@ -256,7 +256,7 @@ static int config_output(AVFilterLink *outlink)
if (s->delayptrs) if (s->delayptrs)
av_freep(s->delayptrs[0]); av_freep(&s->delayptrs[0]);
av_freep(&s->delayptrs); av_freep(&s->delayptrs);
return av_samples_alloc_array_and_samples(&s->delayptrs, NULL, return av_samples_alloc_array_and_samples(&s->delayptrs, NULL,

Loading…
Cancel
Save