Skip to content
Snippets Groups Projects
Commit 88827ef3 authored by Pekka Paalanen's avatar Pekka Paalanen
Browse files

compositor-drm: unref udev on backend destruction


Fixes a small memory leak, spotted with Valgrind.

Signed-off-by: Pekka Paalanen's avatarPekka Paalanen <pekka.paalanen@collabora.co.uk>
parent 58b58919
No related branches found
No related tags found
No related merge requests found
...@@ -3600,6 +3600,8 @@ drm_destroy(struct weston_compositor *ec) ...@@ -3600,6 +3600,8 @@ drm_destroy(struct weston_compositor *ec)
if (b->gbm) if (b->gbm)
gbm_device_destroy(b->gbm); gbm_device_destroy(b->gbm);
udev_unref(b->udev);
weston_launcher_destroy(ec->launcher); weston_launcher_destroy(ec->launcher);
close(b->drm.fd); close(b->drm.fd);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment