mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
vf_drawtext: Fix memory leak
This commit is contained in:
parent
e6be531a30
commit
4cca2f74f2
@ -709,7 +709,8 @@ static av_cold void uninit(AVFilterContext *ctx)
|
||||
|
||||
av_expr_free(s->x_pexpr);
|
||||
av_expr_free(s->y_pexpr);
|
||||
s->x_pexpr = s->y_pexpr = NULL;
|
||||
av_expr_free(s->a_pexpr);
|
||||
s->x_pexpr = s->y_pexpr = s->a_pexpr = NULL;
|
||||
av_freep(&s->positions);
|
||||
s->nb_positions = 0;
|
||||
|
||||
@ -752,7 +753,8 @@ static int config_input(AVFilterLink *inlink)
|
||||
|
||||
av_expr_free(s->x_pexpr);
|
||||
av_expr_free(s->y_pexpr);
|
||||
s->x_pexpr = s->y_pexpr = NULL;
|
||||
av_expr_free(s->a_pexpr);
|
||||
s->x_pexpr = s->y_pexpr = s->a_pexpr = NULL;
|
||||
|
||||
if ((ret = av_expr_parse(&s->x_pexpr, s->x_expr, var_names,
|
||||
NULL, NULL, fun2_names, fun2, 0, ctx)) < 0 ||
|
||||
|
Loading…
Reference in New Issue
Block a user