drm: close the drm file descriptor when the compositor is destroyed
This commit is contained in:
committed by
Kristian Høgsberg
parent
a02d154b13
commit
45c15b83c0
@@ -2260,6 +2260,8 @@ drm_destroy(struct weston_compositor *ec)
|
||||
weston_log("failed to drop master: %m\n");
|
||||
tty_destroy(d->tty);
|
||||
|
||||
close(d->drm.fd);
|
||||
|
||||
free(d);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user