summaryrefslogtreecommitdiff
path: root/libavfilter/vf_drawtext.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-08-30 19:47:23 +0200
committerMichael Niedermayer <michaelni@gmx.at>2011-08-30 20:25:58 +0200
commit3016c7f543a91490457b8a3d21ccef6fd5ff7226 (patch)
tree66da86745dae5b98bb3039c4a424ee4223e0ae45 /libavfilter/vf_drawtext.c
parente01770ba013916a706db3bbef58a65e4f822e6ca (diff)
vf_drawtext: fix segfault on reinit
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter/vf_drawtext.c')
-rw-r--r--libavfilter/vf_drawtext.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavfilter/vf_drawtext.c b/libavfilter/vf_drawtext.c
index 8615aefd1a..4e65e612e1 100644
--- a/libavfilter/vf_drawtext.c
+++ b/libavfilter/vf_drawtext.c
@@ -355,6 +355,7 @@ static av_cold void uninit(AVFilterContext *ctx)
av_freep(&dtext->fontcolor_string);
av_freep(&dtext->boxcolor_string);
av_freep(&dtext->positions);
+ dtext->nb_positions = 0;
av_freep(&dtext->shadowcolor_string);
av_tree_enumerate(dtext->glyphs, NULL, NULL, glyph_enu_free);
av_tree_destroy(dtext->glyphs);