summaryrefslogtreecommitdiff
path: root/uxa
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2010-06-19 13:36:20 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2010-06-19 13:39:48 +0100
commitaf5c4fc96db56a14bf6347774d8e8f23b38c5967 (patch)
tree67a8860e57f48db739e6e3a3d9b0c1eeb6026a81 /uxa
parentbe55066c6481b4c5e2cd39ef1c0f3be88cae0c93 (diff)
uxa: Check for allocation failure.
Check for the NULL Picture prior to passing it to the backends for inspection. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'uxa')
-rw-r--r--uxa/uxa-render.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/uxa/uxa-render.c b/uxa/uxa-render.c
index 33fe9af3..a4cebe3d 100644
--- a/uxa/uxa-render.c
+++ b/uxa/uxa-render.c
@@ -856,6 +856,9 @@ uxa_acquire_picture(ScreenPtr screen,
dst = uxa_acquire_drawable(screen, src,
x, y, width, height,
out_x, out_y);
+ if (!dst)
+ return 0;
+
if (uxa_screen->info->check_composite_texture &&
!uxa_screen->info->check_composite_texture(screen, dst)) {
if (dst != src)