drm: close the drm file descriptor when the compositor is destroyed

This commit is contained in:
Rob Bradford 2013-07-26 16:29:35 +01:00 committed by Kristian Høgsberg
parent a02d154b13
commit 45c15b83c0

View file

@ -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);
}