vf_drawtext: fix memory leak of glyph data.

pull/5/head
Nicolas George 13 years ago
parent 24ab1abfb6
commit 423047ea31
  1. 4
      libavfilter/vf_drawtext.c

@ -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;
}

Loading…
Cancel
Save