forked from pool/xorg-x11-server
e2ca29cba8
Copy from X11:XOrg/xorg-x11-server based on submit request 22138 from user sndirsch OBS-URL: https://build.opensuse.org/request/show/22138 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xorg-x11-server?expand=0&rev=146
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
|
|
|