From a4d1bc43d4d10e2ca1e512c1010e962c587d6c16 Mon Sep 17 00:00:00 2001 From: Maarten Lankhorst Date: Wed, 20 Mar 2013 17:13:44 +0100 Subject: Cleanup drmmode in CloseScreen. Prevents a use-after-free. Signed-off-by: Maarten Lankhorst --- src/drmmode_display.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/drmmode_display.h') 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); -- cgit v1.2.3