diff options
author | Lukasz Marek <lukasz.m.luki@gmail.com> | 2013-11-12 22:38:14 +0100 |
---|---|---|
committer | Stefano Sabatini <stefasab@gmail.com> | 2013-11-13 11:34:19 +0100 |
commit | f04fe23a5256cc82c383f2949ead78cb7cc9228d (patch) | |
tree | aac4184d41d2752e52a9d632f7a6615e4d67f1e6 /libavdevice/xv.c | |
parent | 8cd3685a3ff889b61f6b6f5f083275fe9d505883 (diff) | |
download | ffmpeg-f04fe23a5256cc82c383f2949ead78cb7cc9228d.tar.gz |
lavd/xv: fix memory leak
Results of XvQueryAdaptors have to be freed with XvFreeAdaptorInfo.
Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com>
Diffstat (limited to 'libavdevice/xv.c')
-rw-r--r-- | libavdevice/xv.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavdevice/xv.c b/libavdevice/xv.c index 3b377f8bdb..50d72a5f8d 100644 --- a/libavdevice/xv.c +++ b/libavdevice/xv.c @@ -97,6 +97,7 @@ static int xv_write_header(AVFormatContext *s) if (XvQueryAdaptors(xv->display, DefaultRootWindow(xv->display), &num_adaptors, &ai) != Success) return AVERROR_EXTERNAL; xv->xv_port = ai[0].base_id; + XvFreeAdaptorInfo(ai); if (encctx->pix_fmt != AV_PIX_FMT_YUV420P) { av_log(s, AV_LOG_ERROR, |