drm: close the drm file descriptor when the compositor is destroyed
authorRob Bradford <rob@linux.intel.com>
Fri, 26 Jul 2013 15:29:35 +0000 (16:29 +0100)
committerKristian Høgsberg <krh@bitplanet.net>
Tue, 30 Jul 2013 18:02:56 +0000 (11:02 -0700)
src/compositor-drm.c

index 5a5d79c..cf626ba 100644 (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);
 }