diff options
author | Nicolas George <nicolas.george@normalesup.org> | 2012-04-10 09:55:11 +0200 |
---|---|---|
committer | Nicolas George <nicolas.george@normalesup.org> | 2012-04-10 15:16:12 +0200 |
commit | 423047ea3167db5dc7d7b69165e1930710adb878 (patch) | |
tree | ede5e5e05744a3b99d5cd3faac9a1318df7500bb /libavfilter/vf_drawtext.c | |
parent | 24ab1abfb6d55bf330022df4b10d7aec80b3f116 (diff) | |
download | ffmpeg-streaming-423047ea3167db5dc7d7b69165e1930710adb878.zip ffmpeg-streaming-423047ea3167db5dc7d7b69165e1930710adb878.tar.gz |
vf_drawtext: fix memory leak of glyph data.
Diffstat (limited to 'libavfilter/vf_drawtext.c')
-rw-r--r-- | libavfilter/vf_drawtext.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavfilter/vf_drawtext.c b/libavfilter/vf_drawtext.c index 1d9a858..35f6068 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; } |