summaryrefslogtreecommitdiff
path: root/uxa
diff options
context:
space:
mode:
Diffstat (limited to 'uxa')
-rw-r--r--uxa/uxa-render.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/uxa/uxa-render.c b/uxa/uxa-render.c
index 056b60a4..0c61146c 100644
--- a/uxa/uxa-render.c
+++ b/uxa/uxa-render.c
@@ -794,8 +794,10 @@ uxa_acquire_drawable(ScreenPtr pScreen,
PictureMatchFormat(pScreen, depth, pSrc->format),
0, 0, serverClient, &error);
pScreen->DestroyPixmap(pPixmap);
- ValidatePicture(pDst);
+ if (!pDst)
+ return 0;
+ ValidatePicture(pDst);
done:
pDst->componentAlpha = pSrc->componentAlpha;
*out_x = 0;