avfilter/avf_aphasemeter: fix memleaks

Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
Paul B Mahol 2017-01-04 13:15:19 +01:00
parent 38e4bcae09
commit 72d6101510
1 changed files with 3 additions and 0 deletions

View File

@ -222,8 +222,11 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
static av_cold void uninit(AVFilterContext *ctx)
{
AudioPhaseMeterContext *s = ctx->priv;
int i;
av_frame_free(&s->out);
for (i = 0; i < ctx->nb_outputs; i++)
av_freep(&ctx->output_pads[i].name);
}
static av_cold int init(AVFilterContext *ctx)