Commit ced3b8c6 authored by Paul B Mahol's avatar Paul B Mahol

avfilter/vf_zoompan: fix leaks

parent 20242bc7
......@@ -245,6 +245,8 @@ static int output_single_frame(AVFilterContext *ctx, AVFrame *in, double *var_va
}
return ret;
error:
sws_freeContext(s->sws);
s->sws = NULL;
av_frame_free(&out);
return ret;
}
......@@ -346,6 +348,10 @@ static av_cold void uninit(AVFilterContext *ctx)
sws_freeContext(s->sws);
s->sws = NULL;
av_expr_free(s->x_expr);
av_expr_free(s->y_expr);
av_expr_free(s->zoom_expr);
av_frame_free(&s->in);
}
static const AVFilterPad inputs[] = {
......
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