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:
Chris Wilson 2010-11-09 09:28:54 +00:00
parent 861ee17ae6
commit 81d355a8dc
1 changed files with 2 additions and 0 deletions

View File

@ -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 {