summaryrefslogtreecommitdiff
path: root/src/radeon_kms.c
diff options
context:
space:
mode:
authorMaarten Lankhorst <maarten.lankhorst@canonical.com>2013-03-20 17:13:44 +0100
committerMaarten Lankhorst <maarten.lankhorst@canonical.com>2013-03-20 17:13:44 +0100
commita4d1bc43d4d10e2ca1e512c1010e962c587d6c16 (patch)
tree934c9191756501bedd1eba068db8d38bb2328fff /src/radeon_kms.c
parent3cb3ab8704813d7c14b9e547a30e37598d70c85a (diff)
Cleanup drmmode in CloseScreen.
Prevents a use-after-free. Signed-off-by: Maarten Lankhorst <maarten.lankhorst@canonical.com>
Diffstat (limited to 'src/radeon_kms.c')
-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 e2474670..f997d8a5 100644
--- a/src/radeon_kms.c
+++ b/src/radeon_kms.c
@@ -1065,6 +1065,7 @@ static Bool RADEONCloseScreen_KMS(CLOSE_SCREEN_ARGS_DECL)
drmDropMaster(info->dri2.drm_fd);
+ drmmode_fini(pScrn, &info->drmmode);
if (info->dri2.enabled)
radeon_dri2_close_screen(pScreen);
drmClose(info->dri2.drm_fd);