mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-17 00:32:57 +00:00
Merge branch 'master' into XACE-SELINUX
Conflicts: dix/dispatch.c dix/property.c hw/xfree86/common/xf86VidMode.c include/xkbsrv.h render/glyph.c xkb/xkbActions.c
This commit is contained in:
commit
a52c9b2a59
270 changed files with 1593 additions and 1827 deletions
|
|
@ -2066,7 +2066,7 @@ static void GetSendColorCellsRep(ClientPtr client, xResourceReq *req)
|
|||
}
|
||||
nmasks = creq->planes;
|
||||
length = ((long)npixels + (long)nmasks) * sizeof(Pixel);
|
||||
data = (XETrapDatum *)ALLOCATE_LOCAL(sizeof(XETrapDatum)+length);
|
||||
data = (XETrapDatum *)xalloc(sizeof(XETrapDatum)+length);
|
||||
if (!data)
|
||||
{
|
||||
SendErrorToClient(penv->client, XETrap_avail.data.major_opcode,
|
||||
|
|
@ -2084,7 +2084,7 @@ static void GetSendColorCellsRep(ClientPtr client, xResourceReq *req)
|
|||
{
|
||||
SendErrorToClient(penv->client, XETrap_avail.data.major_opcode,
|
||||
req->reqType, 0L, retval);
|
||||
DEALLOCATE_LOCAL(data);
|
||||
xfree(data);
|
||||
return;
|
||||
}
|
||||
crep = (xAllocColorCellsReply *)&(data->u.reply);
|
||||
|
|
@ -2109,7 +2109,7 @@ static void GetSendColorCellsRep(ClientPtr client, xResourceReq *req)
|
|||
SendErrorToClient(penv->client, XETrap_avail.data.major_opcode,
|
||||
req->reqType, 0L, XETrapErrorBase + BadIO);
|
||||
}
|
||||
DEALLOCATE_LOCAL(data);
|
||||
xfree(data);
|
||||
}
|
||||
static void GetSendColorPlanesRep(ClientPtr client, xResourceReq *req)
|
||||
{ /* adapted from ProcAllocColorPlanes() in dispatch.c */
|
||||
|
|
@ -2137,7 +2137,7 @@ static void GetSendColorPlanesRep(ClientPtr client, xResourceReq *req)
|
|||
return;
|
||||
}
|
||||
length = (long)npixels * sizeof(Pixel);
|
||||
data = (XETrapDatum *)ALLOCATE_LOCAL(sizeof(XETrapDatum)+length);
|
||||
data = (XETrapDatum *)xalloc(sizeof(XETrapDatum)+length);
|
||||
if (!data)
|
||||
{
|
||||
SendErrorToClient(penv->client, XETrap_avail.data.major_opcode,
|
||||
|
|
@ -2157,7 +2157,7 @@ static void GetSendColorPlanesRep(ClientPtr client, xResourceReq *req)
|
|||
{
|
||||
SendErrorToClient(penv->client, XETrap_avail.data.major_opcode,
|
||||
req->reqType, 0L, retval);
|
||||
DEALLOCATE_LOCAL(data);
|
||||
xfree(data);
|
||||
return;
|
||||
}
|
||||
crep->nPixels = npixels;
|
||||
|
|
@ -2182,6 +2182,6 @@ static void GetSendColorPlanesRep(ClientPtr client, xResourceReq *req)
|
|||
SendErrorToClient(penv->client, XETrap_avail.data.major_opcode,
|
||||
req->reqType, 0L, XETrapErrorBase + BadIO);
|
||||
}
|
||||
DEALLOCATE_LOCAL(data);
|
||||
xfree(data);
|
||||
}
|
||||
#endif /* COLOR_REPLIES */
|
||||
|
|
|
|||
Loading…
Reference in a new issue