[PATCH weston 21/21] compositor-drm: unref udev on backend destruction
Pekka Paalanen
ppaalanen at gmail.com
Fri Sep 22 14:31:29 UTC 2017
From: Pekka Paalanen <pekka.paalanen at collabora.co.uk>
Fixes a small memory leak, spotted with Valgrind.
Signed-off-by: Pekka Paalanen <pekka.paalanen at collabora.co.uk>
---
libweston/compositor-drm.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libweston/compositor-drm.c b/libweston/compositor-drm.c
index 58860c0b..dc907818 100644
--- a/libweston/compositor-drm.c
+++ b/libweston/compositor-drm.c
@@ -3600,6 +3600,8 @@ drm_destroy(struct weston_compositor *ec)
if (b->gbm)
gbm_device_destroy(b->gbm);
+ udev_unref(b->udev);
+
weston_launcher_destroy(ec->launcher);
close(b->drm.fd);
--
2.13.5
More information about the wayland-devel
mailing list