[FFmpeg-cvslog] vf_drawtext: Fix memory leak
Kieran Kunhya
git at videolan.org
Tue Mar 21 14:16:04 EET 2017
ffmpeg | branch: master | Kieran Kunhya <kierank at obe.tv> | Mon Mar 20 19:40:29 2017 +0000| [4cca2f74f25331067cfb234328411bd114664871] | committer: Kieran Kunhya
vf_drawtext: Fix memory leak
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4cca2f74f25331067cfb234328411bd114664871
---
libavfilter/vf_drawtext.c | 6 ++++--
1 file 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 ||
More information about the ffmpeg-cvslog
mailing list