vf_drawtext: fix memory leak of glyph data.
authorNicolas George <nicolas.george@normalesup.org>
Tue, 10 Apr 2012 07:55:11 +0000 (09:55 +0200)
committerNicolas George <nicolas.george@normalesup.org>
Tue, 10 Apr 2012 13:16:12 +0000 (15:16 +0200)
libavfilter/vf_drawtext.c

index 1d9a858..35f6068 100644 (file)
@@ -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;
 }