NULL checks
This commit is contained in:
parent
621fa337fb
commit
410b0a4254
|
@ -463,7 +463,7 @@ ExaPrepareSolid(PixmapPtr pPixmap, int alu, Pixel planeMask, Pixel fg)
|
|||
if (!EXA_PM_IS_SOLID(&pPixmap->drawable, planeMask))
|
||||
return FALSE;
|
||||
|
||||
if (!priv->tex)
|
||||
if (!priv || !priv->tex)
|
||||
return FALSE;
|
||||
|
||||
if (alu != GXcopy)
|
||||
|
@ -515,6 +515,9 @@ ExaPrepareCopy(PixmapPtr pSrcPixmap, PixmapPtr pDstPixmap, int xdir,
|
|||
if (!EXA_PM_IS_SOLID(&pSrcPixmap->drawable, planeMask))
|
||||
return FALSE;
|
||||
|
||||
if (!priv || !src_priv)
|
||||
return FALSE;
|
||||
|
||||
if (!priv->tex || !src_priv->tex)
|
||||
return FALSE;
|
||||
|
||||
|
|
Loading…
Reference in New Issue