summaryrefslogtreecommitdiff
path: root/libavfilter/vf_drawtext.c
diff options
context:
space:
mode:
authorStefano Sabatini <stefasab@gmail.com>2012-06-25 22:41:33 +0200
committerStefano Sabatini <stefasab@gmail.com>2012-06-25 22:49:16 +0200
commit9b41ec4b9e99aa5a3f2b46311fe8e2f2b6822133 (patch)
tree9757b29f4e4eb52336604ccdcf6bcc44b9bbb999 /libavfilter/vf_drawtext.c
parent6be8cfa0346da0245fd1869f3b872ff9b54082ed (diff)
lavfi/drawtext: use av_opt_free() to free private context
Simplify code.
Diffstat (limited to 'libavfilter/vf_drawtext.c')
-rw-r--r--libavfilter/vf_drawtext.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/libavfilter/vf_drawtext.c b/libavfilter/vf_drawtext.c
index dc2e871756..e5ba32e890 100644
--- a/libavfilter/vf_drawtext.c
+++ b/libavfilter/vf_drawtext.c
@@ -511,16 +511,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->draw_pexpr); dtext->draw_pexpr = NULL;
-
- av_freep(&dtext->boxcolor_string);
- av_freep(&dtext->expanded_text);
- av_freep(&dtext->fontcolor_string);
- av_freep(&dtext->fontfile);
- av_freep(&dtext->shadowcolor_string);
- av_freep(&dtext->text);
- av_freep(&dtext->x_expr);
- av_freep(&dtext->y_expr);
- av_freep(&dtext->draw_expr);
+ av_opt_free(dtext);
av_freep(&dtext->positions);
dtext->nb_positions = 0;