diff options
author | Roland Mainz <roland.mainz@nrubsig.org> | 2004-12-13 01:16:24 +0000 |
---|---|---|
committer | Roland Mainz <roland.mainz@nrubsig.org> | 2004-12-13 01:16:24 +0000 |
commit | 8ab0584b34a4f7707c746512cd553883670f3da7 (patch) | |
tree | 7e8e635aac50545d3970433fcf3e8212716c9864 | |
parent | bed769443897dc3bb3113c6c36b9575576d922a3 (diff) |
//bugs.freedesktop.org/show_bug.cgi?id=1989) attachment #1399
(https://bugs.freedesktop.org/attachment.cgi?id=1399): Fixed sig11 in
|ScreenSaverUnsetAttributes()| which occured when calling a
|CloseDisplay()| after |XScreenSaverSetAttributes()| followed by
|XScreenSaverUnsetAttributes()|. Caused by missing |FreeResource()| in
|XScreenSaverUnsetAttributes()|. Patch by Egbert Eich
<eich@freedesktop.org>.
-rw-r--r-- | Xext/saver.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Xext/saver.c b/Xext/saver.c index 4b783fd5e..dac1a94af 100644 --- a/Xext/saver.c +++ b/Xext/saver.c @@ -1,4 +1,4 @@ -/* $XdotOrg$ */ +/* $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); |