summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMaarten Lankhorst <maarten.lankhorst@canonical.com>2013-03-20 17:12:29 +0100
committerMaarten Lankhorst <maarten.lankhorst@canonical.com>2013-03-20 17:13:23 +0100
commit3cb3ab8704813d7c14b9e547a30e37598d70c85a (patch)
tree9e615960a719b2ca839cce13ed93dbf3a0c4e679 /src
parent462d8d3b86038438ab854072e546cc7a9efacdd7 (diff)
Close drm_fd in CloseScreen.
This prevents a small fd leak. Signed-off-by: Maarten Lankhorst <maarten.lankhorst@canonical.com>
Diffstat (limited to 'src')
-rw-r--r--src/radeon_kms.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/radeon_kms.c b/src/radeon_kms.c
index cacdf8eb..e2474670 100644
--- a/src/radeon_kms.c
+++ b/src/radeon_kms.c
@@ -1067,6 +1067,7 @@ static Bool RADEONCloseScreen_KMS(CLOSE_SCREEN_ARGS_DECL)
if (info->dri2.enabled)
radeon_dri2_close_screen(pScreen);
+ drmClose(info->dri2.drm_fd);
pScrn->vtSema = FALSE;
xf86ClearPrimInitDone(info->pEnt->index);