Commit 72d61015 authored by Paul B Mahol's avatar Paul B Mahol

avfilter/avf_aphasemeter: fix memleaks

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent 38e4bcae
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment