summaryrefslogtreecommitdiff
path: root/Xext/saver.c
diff options
context:
space:
mode:
Diffstat (limited to 'Xext/saver.c')
-rw-r--r--Xext/saver.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/Xext/saver.c b/Xext/saver.c
index fa75aa555..1b96932e2 100644
--- a/Xext/saver.c
+++ b/Xext/saver.c
@@ -27,7 +27,7 @@ in this Software without prior written authorization from the X Consortium.
* Author: Keith Packard, MIT X Consortium
*/
-/* $XFree86: xc/programs/Xserver/Xext/saver.c,v 3.7 2003/10/28 23:08:43 tsi Exp $ */
+/* $XFree86: xc/programs/Xserver/Xext/saver.c,v 3.9 2004/03/02 19:43:24 dawes Exp $ */
#define NEED_REPLIES
#define NEED_EVENTS
@@ -810,7 +810,7 @@ ScreenSaverSetAttributes (ClientPtr client)
DepthPtr pDepth;
WindowOptPtr ancwopt;
unsigned long *pVlist;
- unsigned long *values = 0;
+ unsigned long *values = 0, *save = 0;
unsigned long tmask, imask;
unsigned long val;
Pixmap pixID;
@@ -938,6 +938,7 @@ ScreenSaverSetAttributes (ClientPtr client)
ret = BadAlloc;
goto bail;
}
+ save = values;
pAttr->screen = pScreen;
pAttr->client = client;
pAttr->x = stuff->x;
@@ -1166,7 +1167,7 @@ PatchUp:
bail:
CheckScreenPrivate (pScreen);
xfree (pAttr);
- xfree (values);
+ xfree (save);
return ret;
}