From: Rob Bradford Date: Fri, 26 Jul 2013 15:29:35 +0000 (+0100) Subject: drm: close the drm file descriptor when the compositor is destroyed X-Git-Tag: upstream/0.1.8~1102 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=45c15b83c00217f24f8e36d54fd3d841e144c5de;p=profile%2Fivi%2Fweston-ivi-shell.git drm: close the drm file descriptor when the compositor is destroyed --- diff --git a/src/compositor-drm.c b/src/compositor-drm.c index 5a5d79c..cf626ba 100644 --- a/src/compositor-drm.c +++ b/src/compositor-drm.c @@ -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); }