summaryrefslogtreecommitdiff
path: root/composite
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2010-06-03 12:16:40 +1000
committerKeith Packard <keithp@keithp.com>2010-06-02 21:01:09 -0700
commit91a6359caf24d94343ff76f43ea7b7fc3223203d (patch)
tree6b17a067ac4cab3b2c87bb4d8bb03e75452de7cc /composite
parent968a79dcf5e17ac3963953ef56b8f94dbd75323b (diff)
composite: initialise pOldPixmap to NullPixmap at alloc time.
We just never initialised the malloced value. Signed-off-by: Dave Airlie <airlied@redhat.com> Reviewed-by: Keith Packard <keithp@keithp.com> Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'composite')
-rw-r--r--composite/compalloc.c1
1 files changed, 1 insertions, 0 deletions
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;