From 2a0c6c331e79b8f2926d4e3529421f8f5f592a0b Mon Sep 17 00:00:00 2001 From: Pekka Paalanen Date: Wed, 13 Sep 2017 16:48:01 +0300 Subject: [PATCH] compositor-drm: unref udev on backend destruction Fixes a small memory leak, spotted with Valgrind. Signed-off-by: Pekka Paalanen Reviewed-by: Ian Ray --- libweston/compositor-drm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libweston/compositor-drm.c b/libweston/compositor-drm.c index 578ff9d..5e87cb4 100644 --- a/libweston/compositor-drm.c +++ b/libweston/compositor-drm.c @@ -3582,6 +3582,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.7.4