diff options
author | Maarten Lankhorst <maarten.lankhorst@canonical.com> | 2013-03-20 17:12:29 +0100 |
---|---|---|
committer | Maarten Lankhorst <maarten.lankhorst@canonical.com> | 2013-03-20 17:13:23 +0100 |
commit | 3cb3ab8704813d7c14b9e547a30e37598d70c85a (patch) | |
tree | 9e615960a719b2ca839cce13ed93dbf3a0c4e679 /src | |
parent | 462d8d3b86038438ab854072e546cc7a9efacdd7 (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.c | 1 |
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); |