summaryrefslogtreecommitdiff
path: root/libavdevice
diff options
context:
space:
mode:
Diffstat (limited to 'libavdevice')
-rw-r--r--libavdevice/xv.c1
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,