[FFmpeg-cvslog] lavd/xv: fix memory leak
Lukasz Marek
git at videolan.org
Wed Nov 13 11:40:51 CET 2013
ffmpeg | branch: master | Lukasz Marek <lukasz.m.luki at gmail.com> | Tue Nov 12 22:38:14 2013 +0100| [f04fe23a5256cc82c383f2949ead78cb7cc9228d] | committer: Stefano Sabatini
lavd/xv: fix memory leak
Results of XvQueryAdaptors have to be freed with XvFreeAdaptorInfo.
Signed-off-by: Lukasz Marek <lukasz.m.luki at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f04fe23a5256cc82c383f2949ead78cb7cc9228d
---
libavdevice/xv.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavdevice/xv.c b/libavdevice/xv.c
index 3b377f8..50d72a5 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,
More information about the ffmpeg-cvslog
mailing list