summaryrefslogtreecommitdiffstats
path: root/video/out
diff options
context:
space:
mode:
authorAaron Boxer <boxerab@protonmail.com>2023-01-26 14:15:43 -0500
committersfan5 <sfan5@live.de>2023-01-28 16:54:48 +0100
commite3618002e3f3441fc8543a93ea839f741f93f322 (patch)
tree20088397eec0f567318de64f2614dd989f4df641 /video/out
parent9d659ed847d93bae609ba0b3aed4bf489c6940a6 (diff)
downloadmpv-e3618002e3f3441fc8543a93ea839f741f93f322.tar.bz2
mpv-e3618002e3f3441fc8543a93ea839f741f93f322.tar.xz
vo_dmabuf_wayland: plug leaking file descriptor from solid buffer pool
Diffstat (limited to 'video/out')
-rw-r--r--video/out/vo_dmabuf_wayland.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/video/out/vo_dmabuf_wayland.c b/video/out/vo_dmabuf_wayland.c
index ead01e6ed9..81fc15fd56 100644
--- a/video/out/vo_dmabuf_wayland.c
+++ b/video/out/vo_dmabuf_wayland.c
@@ -389,6 +389,7 @@ static int preinit(struct vo *vo)
if (fd < 0)
goto err;
p->solid_buffer_pool = wl_shm_create_pool(vo->wl->shm, fd, height * stride);
+ close(fd);
if (!p->solid_buffer_pool)
goto err;
p->solid_buffer = wl_shm_pool_create_buffer(