From 8ac6a2da07ac77f3f9759a9daeb3f0e92a95aa9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristian=20H=C3=B8gsberg?= Date: Wed, 9 Oct 2013 09:59:06 -0700 Subject: [PATCH] compositor-fbdev: Fix a fd leak in the fbdev backend fbdev_frame_buffer_map() closes the fb fd, so we have to close it manually in case we're using the hybris renderer (ie !pixman). --- src/compositor-fbdev.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/compositor-fbdev.c b/src/compositor-fbdev.c index 92aefdac..3d2819b0 100644 --- a/src/compositor-fbdev.c +++ b/src/compositor-fbdev.c @@ -524,6 +524,8 @@ fbdev_output_create(struct fbdev_compositor *compositor, weston_log("Mapping frame buffer failed.\n"); goto out_free; } + } else { + close(fb_fd); } output->base.start_repaint_loop = fbdev_output_start_repaint_loop;