summaryrefslogtreecommitdiffstats
path: root/libavfilter/vf_drawtext.c
diff options
context:
space:
mode:
authorNicolas George <nicolas.george@normalesup.org>2012-04-10 09:55:11 +0200
committerNicolas George <nicolas.george@normalesup.org>2012-04-10 15:16:12 +0200
commit423047ea3167db5dc7d7b69165e1930710adb878 (patch)
treeede5e5e05744a3b99d5cd3faac9a1318df7500bb /libavfilter/vf_drawtext.c
parent24ab1abfb6d55bf330022df4b10d7aec80b3f116 (diff)
downloadffmpeg-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.c4
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;
}
OpenPOWER on IntegriCloud