From a81920bdbf94436bd58b3ac51bf43e3b2c5f3499 Mon Sep 17 00:00:00 2001 From: Albert Damen Date: Sun, 25 Oct 2009 18:02:07 +0100 Subject: [PATCH] Fix crash in uxa_acquire_pattern when pDst is NULL Signed-off-by: Albert Damen --- uxa/uxa-render.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/uxa/uxa-render.c b/uxa/uxa-render.c index 497c93d..7c0dbe5 100644 --- a/uxa/uxa-render.c +++ b/uxa/uxa-render.c @@ -449,6 +449,8 @@ uxa_acquire_pattern(ScreenPtr pScreen, PicturePtr pDst; pDst = uxa_picture_for_pixman_format(pScreen, format, width, height); + if (!pDst) + return 0; if (uxa_prepare_access(pDst->pDrawable, UXA_ACCESS_RW)) { fbComposite(PictOpSrc, pSrc, NULL, pDst, x, y, 0, 0, 0, 0, width, height); -- 1.6.3.3