mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-25 08:29:23 +00:00
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>
This commit is contained in:
committed by
Keith Packard
parent
968a79dcf5
commit
91a6359caf
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user