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>
This commit is contained in:
parent
513f9a4412
commit
2a0c6c331e
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user