diff options
author | Pekka Paalanen <pekka.paalanen@collabora.co.uk> | 2017-09-13 16:48:01 +0300 |
---|---|---|
committer | Pekka Paalanen <pekka.paalanen@collabora.co.uk> | 2017-09-25 12:10:12 +0300 |
commit | 2a0c6c331e79b8f2926d4e3529421f8f5f592a0b (patch) | |
tree | b9e988e4f878fedbe71e16304e04b8c307bd3a43 /libweston | |
parent | 513f9a441287dd111e1de7e75a2dfebd5f48c80a (diff) |
compositor-drm: unref udev on backend destruction
Fixes a small memory leak, spotted with Valgrind.
Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Reviewed-by: Ian Ray <ian.ray@ge.com>
Diffstat (limited to 'libweston')
-rw-r--r-- | libweston/compositor-drm.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libweston/compositor-drm.c b/libweston/compositor-drm.c index 578ff9d6..5e87cb41 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); |