aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2015-09-26 00:28:14 +0200
committerUlrich Sibiller <uli42@gmx.de>2015-09-26 00:28:45 +0200
commit1fe33b710be26a013090c6c14ae3846940154cab (patch)
tree3f6a97938d4440307f969f8eb08d96271b0ba034
parentd088698324d5e71cb93ccd429f084729ba07872c (diff)
downloadnx-libs-1fe33b710be26a013090c6c14ae3846940154cab.tar.gz
nx-libs-1fe33b710be26a013090c6c14ae3846940154cab.tar.bz2
nx-libs-1fe33b710be26a013090c6c14ae3846940154cab.zip
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.
-rw-r--r--nx-X11/programs/Xserver/randr/rrmode.c2
-rw-r--r--nx-X11/programs/Xserver/randr/rrscreen.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/nx-X11/programs/Xserver/randr/rrmode.c b/nx-X11/programs/Xserver/randr/rrmode.c
index db0af33b8..de51bec81 100644
--- a/nx-X11/programs/Xserver/randr/rrmode.c
+++ b/nx-X11/programs/Xserver/randr/rrmode.c
@@ -99,7 +99,7 @@ RRModeCreate (xRRModeInfo *modeInfo,
mode->mode.id = FakeClientID(0);
if (!AddResource(mode->mode.id, RRModeType, (pointer) mode)) {
- free(newModes);
+ xfree(newModes);
return NULL;
}
modes = newModes;
diff --git a/nx-X11/programs/Xserver/randr/rrscreen.c b/nx-X11/programs/Xserver/randr/rrscreen.c
index a3851bd60..70a9be0c6 100644
--- a/nx-X11/programs/Xserver/randr/rrscreen.c
+++ b/nx-X11/programs/Xserver/randr/rrscreen.c
@@ -943,12 +943,12 @@ ProcRRSetScreenConfig (ClientPtr client)
if (width < pScrPriv->minWidth || pScrPriv->maxWidth < width) {
client->errorValue = width;
- free(pData);
+ xfree (pData);
return BadValue;
}
if (height < pScrPriv->minHeight || pScrPriv->maxHeight < height) {
client->errorValue = height;
- free(pData);
+ xfree (pData);
return BadValue;
}