summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Drake <dsd@laptop.org>2008-09-02 16:20:40 -0400
committerAdam Jackson <ajax@redhat.com>2008-09-02 17:33:21 -0400
commit7f42ed6ca938d0dee66bdfd6237b6632a4f7ab0d (patch)
treecc0c9e7b5acb302055b43888b5e347204799c73d
parent48744d20b1d23b731604db10dda85a10f62664dc (diff)
Don't try to destroy a NULL pixmap.
(cherry picked from commit 4e1f9f51a9eea115ce2a073824e9c5cef4e2f364)
-rw-r--r--dix/dispatch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dix/dispatch.c b/dix/dispatch.c
index bb8b0c416..b91385596 100644
--- a/dix/dispatch.c
+++ b/dix/dispatch.c
@@ -1338,8 +1338,8 @@ CreatePmap:
}
if (AddResource(stuff->pid, RT_PIXMAP, (pointer)pMap))
return(client->noClientException);
+ (*pDraw->pScreen->DestroyPixmap)(pMap);
}
- (*pDraw->pScreen->DestroyPixmap)(pMap);
return (BadAlloc);
}