forked from pool/xorg-x11-server
27 lines
872 B
Diff
27 lines
872 B
Diff
|
From 5ed1510176b870fd6208e2f8561880c4abe6637d Mon Sep 17 00:00:00 2001
|
||
|
From: Egbert Eich <eich@linux-p1mv.site>
|
||
|
Date: Thu, 8 Oct 2009 12:40:55 +0200
|
||
|
Subject: [PATCH] Fix segfault when killing X with ctrl-alt-backspace.
|
||
|
|
||
|
The damage structure for the cursor is not deregistered before deallocation,
|
||
|
causing a subsequent DamageUnregister () to segfault.
|
||
|
---
|
||
|
mi/misprite.c | 1 +
|
||
|
1 files changed, 1 insertions(+), 0 deletions(-)
|
||
|
|
||
|
diff --git a/mi/misprite.c b/mi/misprite.c
|
||
|
index 692e6c9..c368928 100644
|
||
|
--- a/mi/misprite.c
|
||
|
+++ b/mi/misprite.c
|
||
|
@@ -313,6 +313,7 @@ miSpriteCloseScreen (int i, ScreenPtr pScreen)
|
||
|
pScreen->InstallColormap = pScreenPriv->InstallColormap;
|
||
|
pScreen->StoreColors = pScreenPriv->StoreColors;
|
||
|
|
||
|
+ miSpriteDisableDamage(pScreen, pScreenPriv);
|
||
|
DamageDestroy (pScreenPriv->pDamage);
|
||
|
|
||
|
xfree ((pointer) pScreenPriv);
|
||
|
--
|
||
|
1.6.4.2
|
||
|
|