From 423047ea3167db5dc7d7b69165e1930710adb878 Mon Sep 17 00:00:00 2001 From: Nicolas George Date: Tue, 10 Apr 2012 09:55:11 +0200 Subject: [PATCH] vf_drawtext: fix memory leak of glyph data. --- libavfilter/vf_drawtext.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libavfilter/vf_drawtext.c b/libavfilter/vf_drawtext.c index 1d9a858633..35f6068f3e 100644 --- a/libavfilter/vf_drawtext.c +++ b/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; }