Commit 1fe33b71 authored by Ulrich Sibiller's avatar Ulrich Sibiller

use xfree instead of free for xalloced data

This was brought in by a backport since in later versions xalloc/xfree have been replaced by malloc/free.
parent d0886983
...@@ -99,7 +99,7 @@ RRModeCreate (xRRModeInfo *modeInfo, ...@@ -99,7 +99,7 @@ RRModeCreate (xRRModeInfo *modeInfo,
mode->mode.id = FakeClientID(0); mode->mode.id = FakeClientID(0);
if (!AddResource(mode->mode.id, RRModeType, (pointer) mode)) { if (!AddResource(mode->mode.id, RRModeType, (pointer) mode)) {
free(newModes); xfree(newModes);
return NULL; return NULL;
} }
modes = newModes; modes = newModes;
......
...@@ -943,12 +943,12 @@ ProcRRSetScreenConfig (ClientPtr client) ...@@ -943,12 +943,12 @@ ProcRRSetScreenConfig (ClientPtr client)
if (width < pScrPriv->minWidth || pScrPriv->maxWidth < width) { if (width < pScrPriv->minWidth || pScrPriv->maxWidth < width) {
client->errorValue = width; client->errorValue = width;
free(pData); xfree (pData);
return BadValue; return BadValue;
} }
if (height < pScrPriv->minHeight || pScrPriv->maxHeight < height) { if (height < pScrPriv->minHeight || pScrPriv->maxHeight < height) {
client->errorValue = height; client->errorValue = height;
free(pData); xfree (pData);
return BadValue; return BadValue;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment