summaryrefslogtreecommitdiff
path: root/exa
diff options
context:
space:
mode:
authorGeorge Fufutos <fufutos610@hotmail.com>2006-06-24 15:23:14 +0200
committerMichel Dänzer <michel@tungstengraphics.com>2006-06-24 15:23:14 +0200
commitafb84c2fca56887b3bfe7aa93f337c49b087acdc (patch)
treedc9276e93825c449e908eb47ca040781f88cab9f /exa
parent930b9a069a425818d4e9965f53be7df1f4d7d422 (diff)
Bug #6911: Check return value of exaGetPixelFromRGBA().
Diffstat (limited to 'exa')
-rw-r--r--exa/exa_render.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/exa/exa_render.c b/exa/exa_render.c
index 26b29ab04..b21c5d724 100644
--- a/exa/exa_render.c
+++ b/exa/exa_render.c
@@ -282,8 +282,12 @@ exaTryDriverSolidFill(PicturePtr pSrc,
return -1;
}
- exaGetPixelFromRGBA(&pixel, red, green, blue, alpha,
- pDst->format);
+ if (!exaGetPixelFromRGBA(&pixel, red, green, blue, alpha,
+ pDst->format))
+ {
+ REGION_UNINIT(pDst->pDrawable->pScreen, &region);
+ return -1;
+ }
if (!(*pExaScr->info->PrepareSolid) (pDstPix, GXcopy, 0xffffffff, pixel))
{