From b06848f4deccb998f019eadc9a72e595bb5db4a9 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Mon, 18 Mar 2013 21:31:54 +0100 Subject: vf_lut: make config_props work properly when called multiple times. Do not leak the expressions. --- libavfilter/vf_lut.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libavfilter/vf_lut.c') diff --git a/libavfilter/vf_lut.c b/libavfilter/vf_lut.c index 263bd537d2..348ef32326 100644 --- a/libavfilter/vf_lut.c +++ b/libavfilter/vf_lut.c @@ -245,6 +245,8 @@ static int config_props(AVFilterLink *inlink) double res; /* create the parsed expression */ + av_expr_free(s->comp_expr[comp]); + s->comp_expr[comp] = NULL; ret = av_expr_parse(&s->comp_expr[comp], s->comp_expr_str[comp], var_names, funcs1_names, funcs1, NULL, NULL, 0, ctx); if (ret < 0) { -- cgit v1.2.3