exa: set driverPriv to NULL before it might get used later with garbage
This commit is contained in:
parent
514ba4ca72
commit
c89b543198
|
@ -257,6 +257,7 @@ exaCreatePixmap(ScreenPtr pScreen, int w, int h, int depth,
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
pExaPixmap = ExaGetPixmapPriv(pPixmap);
|
pExaPixmap = ExaGetPixmapPriv(pPixmap);
|
||||||
|
pExaPixmap->driverPriv = NULL;
|
||||||
|
|
||||||
bpp = pPixmap->drawable.bitsPerPixel;
|
bpp = pPixmap->drawable.bitsPerPixel;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue