summaryrefslogtreecommitdiff
path: root/src/drmmode_display.h
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/drmmode_display.h
parent3cb3ab8704813d7c14b9e547a30e37598d70c85a (diff)
Cleanup drmmode in CloseScreen.
Prevents a use-after-free. Signed-off-by: Maarten Lankhorst <maarten.lankhorst@canonical.com>
Diffstat (limited to 'src/drmmode_display.h')
-rw-r--r--src/drmmode_display.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/drmmode_display.h b/src/drmmode_display.h
index 45c33cb3..b63ec8eb 100644
--- a/src/drmmode_display.h
+++ b/src/drmmode_display.h
@@ -99,6 +99,7 @@ typedef struct {
extern Bool drmmode_pre_init(ScrnInfoPtr pScrn, drmmode_ptr drmmode, int cpp);
extern void drmmode_init(ScrnInfoPtr pScrn, drmmode_ptr drmmode);
+extern void drmmode_fini(ScrnInfoPtr pScrn, drmmode_ptr drmmode);
extern Bool drmmode_set_bufmgr(ScrnInfoPtr pScrn, drmmode_ptr drmmode, struct radeon_bo_manager *bufmgr);
extern void drmmode_set_cursor(ScrnInfoPtr scrn, drmmode_ptr drmmode, int id, struct radeon_bo *bo);
void drmmode_adjust_frame(ScrnInfoPtr pScrn, drmmode_ptr drmmode, int x, int y);