summaryrefslogtreecommitdiff
path: root/uxa
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2010-11-09 09:28:54 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2010-11-09 09:30:12 +0000
commit81d355a8dcdfe3d0924bb843bcc0e6546f695391 (patch)
tree4128847633208948d5266216293fd0a9b2ab4e62 /uxa
parent861ee17ae662ffec2269292f92da7833df508b1a (diff)
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>
Diffstat (limited to 'uxa')
-rw-r--r--uxa/uxa-render.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/uxa/uxa-render.c b/uxa/uxa-render.c
index fd8eb939..a6b539d1 100644
--- a/uxa/uxa-render.c
+++ b/uxa/uxa-render.c
@@ -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 {