[PATCH weston 01/11] drm: close the drm file descriptor when the compositor is destroyed

Rob Bradford robert.bradford at intel.com
Fri Jul 26 08:29:35 PDT 2013


From: Rob Bradford <rob at linux.intel.com>

---
 src/compositor-drm.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/compositor-drm.c b/src/compositor-drm.c
index 5a5d79c..cf626ba 100644
--- a/src/compositor-drm.c
+++ b/src/compositor-drm.c
@@ -2260,6 +2260,8 @@ drm_destroy(struct weston_compositor *ec)
 		weston_log("failed to drop master: %m\n");
 	tty_destroy(d->tty);
 
+	close(d->drm.fd);
+
 	free(d);
 }
 
-- 
1.8.3.1



More information about the wayland-devel mailing list