Xorg: fix crash in randr
This commit is contained in:
parent
e8c61af838
commit
4ddda1554f
@ -119,8 +119,9 @@ rdpRRScreenSetSize(ScreenPtr pScreen, CARD16 width, CARD16 height,
|
||||
pScreen->mmWidth = mmWidth;
|
||||
pScreen->mmHeight = mmHeight;
|
||||
screenPixmap = pScreen->GetScreenPixmap(pScreen);
|
||||
g_free(dev->pfbMemory);
|
||||
dev->pfbMemory = (char *) g_malloc(dev->sizeInBytes, 1);
|
||||
g_free(dev->pfbMemory_alloc);
|
||||
dev->pfbMemory_alloc = (char *) g_malloc(dev->sizeInBytes + 16, 1);
|
||||
dev->pfbMemory = (char *) RDPALIGN(dev->pfbMemory_alloc, 16);
|
||||
if (screenPixmap != 0)
|
||||
{
|
||||
pScreen->ModifyPixmapHeader(screenPixmap, width, height,
|
||||
|
Loading…
Reference in New Issue
Block a user