Commit 423047ea authored by Nicolas George's avatar Nicolas George

vf_drawtext: fix memory leak of glyph data.

parent 24ab1abf
......@@ -416,6 +416,10 @@ static int query_formats(AVFilterContext *ctx)
static int glyph_enu_free(void *opaque, void *elem)
{
Glyph *glyph = elem;
FT_Done_Glyph(*glyph->glyph);
av_freep(&glyph->glyph);
av_free(elem);
return 0;
}
......
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