Browse code

vf_drawtext: fix memory leak of glyph data.

Nicolas George authored on 2012/04/10 16:55:11
Showing 1 changed files
... ...
@@ -416,6 +416,10 @@ static int query_formats(AVFilterContext *ctx)
416 416
 
417 417
 static int glyph_enu_free(void *opaque, void *elem)
418 418
 {
419
+    Glyph *glyph = elem;
420
+
421
+    FT_Done_Glyph(*glyph->glyph);
422
+    av_freep(&glyph->glyph);
419 423
     av_free(elem);
420 424
     return 0;
421 425
 }