diff options
author | Dave Airlie <airlied@redhat.com> | 2010-06-03 12:16:40 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2010-06-11 11:09:46 +1000 |
commit | 14dc68c2655ea033d102ebfc2cb6a368fc0c330f (patch) | |
tree | 42529646cb4ada41e7d1d55a615be24a9cba8085 | |
parent | 1f6de991d0b44bf1412dc58067fae551f6aac5d1 (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>
(cherry picked from commit 91a6359caf24d94343ff76f43ea7b7fc3223203d)
-rw-r--r-- | composite/compalloc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/composite/compalloc.c b/composite/compalloc.c index 73adc72d0..8a6beb903 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; |