From 91a6359caf24d94343ff76f43ea7b7fc3223203d Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Thu, 3 Jun 2010 12:16:40 +1000 Subject: [PATCH] composite: initialise pOldPixmap to NullPixmap at alloc time. We just never initialised the malloced value. Signed-off-by: Dave Airlie Reviewed-by: Keith Packard Signed-off-by: Keith Packard --- composite/compalloc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/composite/compalloc.c b/composite/compalloc.c index 3694ab868..7930ebe48 100644 --- a/composite/compalloc.c +++ b/composite/compalloc.c @@ -143,6 +143,7 @@ compRedirectWindow (ClientPtr pClient, WindowPtr pWin, int update) cw->oldy = COMP_ORIGIN_INVALID; cw->damageRegistered = FALSE; cw->damaged = FALSE; + cw->pOldPixmap = NullPixmap; dixSetPrivate(&pWin->devPrivates, CompWindowPrivateKey, cw); } ccw->next = cw->clients;