Commit 3016c7f5 authored by Michael Niedermayer's avatar Michael Niedermayer

vf_drawtext: fix segfault on reinit

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent e01770ba
...@@ -355,6 +355,7 @@ static av_cold void uninit(AVFilterContext *ctx) ...@@ -355,6 +355,7 @@ static av_cold void uninit(AVFilterContext *ctx)
av_freep(&dtext->fontcolor_string); av_freep(&dtext->fontcolor_string);
av_freep(&dtext->boxcolor_string); av_freep(&dtext->boxcolor_string);
av_freep(&dtext->positions); av_freep(&dtext->positions);
dtext->nb_positions = 0;
av_freep(&dtext->shadowcolor_string); av_freep(&dtext->shadowcolor_string);
av_tree_enumerate(dtext->glyphs, NULL, NULL, glyph_enu_free); av_tree_enumerate(dtext->glyphs, NULL, NULL, glyph_enu_free);
av_tree_destroy(dtext->glyphs); av_tree_destroy(dtext->glyphs);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment