提交 72d61015 编写于 作者: P Paul B Mahol

avfilter/avf_aphasemeter: fix memleaks

Signed-off-by: NPaul B Mahol <onemda@gmail.com>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册