summaryrefslogtreecommitdiff
path: root/Xext
diff options
context:
space:
mode:
authorEgbert Eich <eich@suse.de>2004-11-01 16:05:27 +0000
committerEgbert Eich <eich@suse.de>2004-11-01 16:05:27 +0000
commit1074992c285835ca9d96d11e8352bbe2cdbc2a28 (patch)
treefc021bc96f40e9897ac36fb03cd4a52c45f05515 /Xext
parent7e588ba9abdcc2078b6c361c81806337b8ff0827 (diff)
Fixed sig11 which occured when calling a CloseDisplay() after
XScreenSaverSetAttributes() followed by XScreenSaverUnsetAttributes(). Caused by missing FreeResource() in XScreenSaverUnsetAttributes(). Removing unused DDC sections that caused misinterpretation of DDC data due to a missing break statement in a switch. Fixed typo: #if <-> #ifdef.
Diffstat (limited to 'Xext')
-rw-r--r--Xext/saver.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Xext/saver.c b/Xext/saver.c
index 7131bb3fa..bef86052a 100644
--- a/Xext/saver.c
+++ b/Xext/saver.c
@@ -1,4 +1,4 @@
-/* $XdotOrg: xc/programs/Xserver/Xext/saver.c,v 1.2 2004/04/23 18:44:41 eich Exp $ */
+/* $XdotOrg: xc/programs/Xserver/Xext/saver.c,v 1.3 2004/10/10 17:48:43 herrb Exp $ */
/*
* $XConsortium: saver.c,v 1.12 94/04/17 20:59:36 dpw Exp $
*
@@ -1185,6 +1185,7 @@ ScreenSaverUnsetAttributes (ClientPtr client)
pPriv = GetScreenPrivate (pDraw->pScreen);
if (pPriv && pPriv->attr && pPriv->attr->client == client)
{
+ FreeResource (pPriv->attr->resource, AttrType);
FreeScreenAttr (pPriv->attr);
pPriv->attr = NULL;
CheckScreenPrivate (pDraw->pScreen);