1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-21 10:55:51 +02:00

vf_drawtext: fix memory leak of glyph data.

This commit is contained in:
Nicolas George 2012-04-10 09:55:11 +02:00
parent 24ab1abfb6
commit 423047ea31

View File

@ -416,6 +416,10 @@ static int query_formats(AVFilterContext *ctx)
static int glyph_enu_free(void *opaque, void *elem) static int glyph_enu_free(void *opaque, void *elem)
{ {
Glyph *glyph = elem;
FT_Done_Glyph(*glyph->glyph);
av_freep(&glyph->glyph);
av_free(elem); av_free(elem);
return 0; return 0;
} }