compositor-fbdev: 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:
Pekka Paalanen 2017-09-13 16:49:02 +03:00
parent 693872391f
commit 513f9a4412

View File

@ -665,6 +665,8 @@ fbdev_backend_destroy(struct weston_compositor *base)
/* Chain up. */
weston_launcher_destroy(base->launcher);
udev_unref(backend->udev);
free(backend);
}