2009-10-12 12:15:18 +02:00
|
|
|
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.
|
2010-01-18 14:04:02 +01:00
|
|
|
================================================================================
|
|
|
|
--- xorg-server-1.7.4/mi/misprite.c
|
|
|
|
+++ xorg-server-1.7.4/mi/misprite.c
|
|
|
|
@@ -384,6 +384,7 @@
|
2009-10-12 12:15:18 +02:00
|
|
|
pScreen->InstallColormap = pScreenPriv->InstallColormap;
|
|
|
|
pScreen->StoreColors = pScreenPriv->StoreColors;
|
|
|
|
|
|
|
|
+ miSpriteDisableDamage(pScreen, pScreenPriv);
|
|
|
|
DamageDestroy (pScreenPriv->pDamage);
|
|
|
|
|
2010-01-18 14:04:02 +01:00
|
|
|
xfree (pScreenPriv);
|