diff options
author | Nicolas George <nicolas.george@normalesup.org> | 2012-04-10 09:55:30 +0200 |
---|---|---|
committer | Nicolas George <nicolas.george@normalesup.org> | 2012-04-10 15:16:12 +0200 |
commit | be9b0d2c5a5e22fcc10467400e95a5ee4524ff07 (patch) | |
tree | 65c4250e058cca7c890702aa0daa85ab2ae9ad99 | |
parent | 423047ea3167db5dc7d7b69165e1930710adb878 (diff) | |
download | ffmpeg-be9b0d2c5a5e22fcc10467400e95a5ee4524ff07.tar.gz |
vf_drawtext: fix memory leak of draw expression.
-rw-r--r-- | libavfilter/vf_drawtext.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavfilter/vf_drawtext.c b/libavfilter/vf_drawtext.c index 35f6068f3e..43b04e01e6 100644 --- a/libavfilter/vf_drawtext.c +++ b/libavfilter/vf_drawtext.c @@ -430,6 +430,7 @@ static av_cold void uninit(AVFilterContext *ctx) av_expr_free(dtext->x_pexpr); dtext->x_pexpr = NULL; av_expr_free(dtext->y_pexpr); dtext->y_pexpr = NULL; + av_expr_free(dtext->d_pexpr); dtext->d_pexpr = NULL; av_freep(&dtext->boxcolor_string); av_freep(&dtext->expanded_text); @@ -439,6 +440,7 @@ static av_cold void uninit(AVFilterContext *ctx) av_freep(&dtext->text); av_freep(&dtext->x_expr); av_freep(&dtext->y_expr); + av_freep(&dtext->d_expr); av_freep(&dtext->positions); dtext->nb_positions = 0; |