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

dev
Rob Bradford 11 years ago committed by Kristian Høgsberg
parent a02d154b13
commit 45c15b83c0
  1. 2
      src/compositor-drm.c

@ -2260,6 +2260,8 @@ drm_destroy(struct weston_compositor *ec)
weston_log("failed to drop master: %m\n"); weston_log("failed to drop master: %m\n");
tty_destroy(d->tty); tty_destroy(d->tty);
close(d->drm.fd);
free(d); free(d);
} }

Loading…
Cancel
Save