mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
Don't try to destroy a NULL pixmap.
This commit is contained in:
committed by
Adam Jackson
parent
613ce09550
commit
4e1f9f51a9
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user