uxa: Fix crash after allocation failure
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=31487 Reported-by: Thomas Fjellstrom <tfjellstrom@shaw.ca> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
861ee17ae6
commit
81d355a8dc
|
|
@ -806,6 +806,8 @@ uxa_acquire_drawable(ScreenPtr pScreen,
|
|||
pDst = uxa_render_picture(pScreen, pSrc,
|
||||
pSrc->format | (BitsPerPixel(pSrc->pDrawable->depth) << 24),
|
||||
x, y, width, height);
|
||||
if (!pDst)
|
||||
return 0;
|
||||
|
||||
goto done;
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in New Issue