[PATCH weston 20/21] compositor-fbdev: unref udev on backend destruction

Pekka Paalanen ppaalanen at gmail.com
Fri Sep 22 14:31:28 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-fbdev.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libweston/compositor-fbdev.c b/libweston/compositor-fbdev.c
index 2e300f47..4b3605cf 100644
--- a/libweston/compositor-fbdev.c
+++ b/libweston/compositor-fbdev.c
@@ -650,6 +650,8 @@ fbdev_backend_destroy(struct weston_compositor *base)
 	/* Chain up. */
 	weston_launcher_destroy(base->launcher);
 
+	udev_unref(backend->udev);
+
 	free(backend);
 }
 
-- 
2.13.5



More information about the wayland-devel mailing list