From: Daniel Drake Date: Tue, 2 Sep 2008 20:20:40 +0000 (-0400) Subject: Don't try to destroy a NULL pixmap. X-Git-Url: http://gitweb.freedesktop.org/?p=xorg/xserver.git;a=commitdiff;h=4e1f9f51a9eea115ce2a073824e9c5cef4e2f364 Don't try to destroy a NULL pixmap. --- --- a/dix/dispatch.c +++ b/dix/dispatch.c @@ -1312,8 +1312,8 @@ CreatePmap: } if (AddResource(stuff->pid, RT_PIXMAP, (pointer)pMap)) return(client->noClientException); + (*pDraw->pScreen->DestroyPixmap)(pMap); } - (*pDraw->pScreen->DestroyPixmap)(pMap); return (BadAlloc); }