summaryrefslogtreecommitdiffstats
path: root/libavfilter
diff options
context:
space:
mode:
authorKieran Kunhya <kierank@obe.tv>2017-03-20 19:40:29 +0000
committerKieran Kunhya <kierank@obe.tv>2017-03-21 12:15:50 +0000
commit4cca2f74f25331067cfb234328411bd114664871 (patch)
tree1ddd54bd93425b6cce5ef1b45fbe27d1be0e966d /libavfilter
parente6be531a30b7f1a14f207e02fb3996e5ae957f0d (diff)
downloadffmpeg-streaming-4cca2f74f25331067cfb234328411bd114664871.zip
ffmpeg-streaming-4cca2f74f25331067cfb234328411bd114664871.tar.gz
vf_drawtext: Fix memory leak
Diffstat (limited to 'libavfilter')
-rw-r--r--libavfilter/vf_drawtext.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libavfilter/vf_drawtext.c b/libavfilter/vf_drawtext.c
index 0b94725..bcbe2d9 100644
--- a/libavfilter/vf_drawtext.c
+++ b/libavfilter/vf_drawtext.c
@@ -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 ||
OpenPOWER on IntegriCloud