diff options
author | marha <marha@users.sourceforge.net> | 2011-04-14 06:41:54 +0000 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2011-04-14 06:41:54 +0000 |
commit | 019fc27ce6dc2a1809107be10d4deb80e0fa436b (patch) | |
tree | 57bc2571720a5d6e518ef15879d56ea066df494c /xorg-server/render | |
parent | 7bcdd32ccff794b9a83a88ff9bc2d0b7b088bd06 (diff) | |
download | vcxsrv-019fc27ce6dc2a1809107be10d4deb80e0fa436b.tar.gz vcxsrv-019fc27ce6dc2a1809107be10d4deb80e0fa436b.tar.bz2 vcxsrv-019fc27ce6dc2a1809107be10d4deb80e0fa436b.zip |
server xkeyboard-config mesa git update 14 Apr 2011
Diffstat (limited to 'xorg-server/render')
-rw-r--r-- | xorg-server/render/render.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/xorg-server/render/render.c b/xorg-server/render/render.c index c5da6d78f..ebb1d630a 100644 --- a/xorg-server/render/render.c +++ b/xorg-server/render/render.c @@ -1705,11 +1705,17 @@ ProcRenderCreateCursor (ClientPtr client) GetColor(twocolor[1], 0), &pCursor, client, stuff->cid); if (rc != Success) - return rc; - if (!AddResource(stuff->cid, RT_CURSOR, (pointer)pCursor)) - return BadAlloc; + goto bail; + if (!AddResource(stuff->cid, RT_CURSOR, (pointer)pCursor)) { + rc = BadAlloc; + goto bail; + } return Success; +bail: + free(srcbits); + free(mskbits); + return rc; } static int |