[PATCH weston 9/9] compositor-drm: unref udev monitor on exit

Pekka Paalanen ppaalanen at gmail.com
Fri Feb 9 13:07:27 UTC 2018


From: Pekka Paalanen <pekka.paalanen at collabora.co.uk>

Leaks spotted by Valgrind.

Signed-off-by: Pekka Paalanen <pekka.paalanen at collabora.co.uk>
---
 libweston/compositor-drm.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libweston/compositor-drm.c b/libweston/compositor-drm.c
index 636da9e8..d8105ca5 100644
--- a/libweston/compositor-drm.c
+++ b/libweston/compositor-drm.c
@@ -5225,6 +5225,7 @@ drm_destroy(struct weston_compositor *ec)
 	if (b->gbm)
 		gbm_device_destroy(b->gbm);
 
+	udev_monitor_unref(b->udev_monitor);
 	udev_unref(b->udev);
 
 	weston_launcher_destroy(ec->launcher);
-- 
2.13.6



More information about the wayland-devel mailing list