diff options
author | Daniel Drake <dsd@laptop.org> | 2008-09-02 16:20:40 -0400 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2008-09-02 16:20:40 -0400 |
commit | 4e1f9f51a9eea115ce2a073824e9c5cef4e2f364 (patch) | |
tree | 568ed633301a3d1a93dce2c39b5ed678cc5d037c /dix | |
parent | 613ce0955032fb032de0a3940752828d314f057a (diff) |
Don't try to destroy a NULL pixmap.
Diffstat (limited to 'dix')
-rw-r--r-- | dix/dispatch.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dix/dispatch.c b/dix/dispatch.c index 8b7fe4bb0..64cde4900 100644 --- 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); } |