Commit 211d4c2d authored by Chris Wilson's avatar Chris Wilson Committed by Adam Jackson

render: Propagate allocation failure from createSourcePicture()

All the callers were already checking for failure, except that
createSourcePicture() itself was failing to check whether it
successfully allocated the Picture.

[ajax: Rebase, fix line wrap of preceding line]
Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: default avatarJeremy Huddleston <jeremyhu@apple.com>
parent 8a26a4af
......@@ -862,7 +862,11 @@ createSourcePicture(void)
{
PicturePtr pPicture;
pPicture = dixAllocateScreenObjectWithPrivates(NULL, PictureRec, PRIVATE_PICTURE);
pPicture = dixAllocateScreenObjectWithPrivates(NULL, PictureRec,
PRIVATE_PICTURE);
if (!pPicture)
return 0;
pPicture->pDrawable = 0;
pPicture->pFormat = 0;
pPicture->pNext = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment