mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-02-04 14:10:32 +01:00
Don't try to destroy a NULL pixmap.
(cherry picked from commit 4e1f9f51a9)
This commit is contained in:
parent
48744d20b1
commit
7f42ed6ca9
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue