aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/hw/nxagent
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2017-12-14 11:27:35 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2017-12-15 10:37:03 +0100
commit5597f2ea509d14fd5589399011c1b8b728901a83 (patch)
tree71de2b87c432677084373d8a7dad0d963151dda0 /nx-X11/programs/Xserver/hw/nxagent
parentd4465b719344c4b241c55779de4d49ed248b243a (diff)
downloadnx-libs-5597f2ea509d14fd5589399011c1b8b728901a83.tar.gz
nx-libs-5597f2ea509d14fd5589399011c1b8b728901a83.tar.bz2
nx-libs-5597f2ea509d14fd5589399011c1b8b728901a83.zip
Xserver/hw/nxagent/Clipboard.c: Fix free calls (free back to XFree).
They have been flawed ever since nxagent came up, as they were Xfree (non-capital f) always, but should have been XFree (capital F, defined in Xlibint.h and part of libNX_X11). . Probably this all should be free() all over the code (bearing in mind, that XFree() returns int, not void. But still... Fixes ArcticaProject/nx-libs#553.
Diffstat (limited to 'nx-X11/programs/Xserver/hw/nxagent')
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Clipboard.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c b/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
index f34849d9a..41c81cd6a 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
@@ -754,7 +754,7 @@ void nxagentCollectPropertyEvent(int resource)
if (pszReturnData != NULL)
{
- free(pszReturnData);
+ XFree(pszReturnData);
}
return;
@@ -796,7 +796,7 @@ void nxagentCollectPropertyEvent(int resource)
if (pszReturnData != NULL)
{
- free(pszReturnData);
+ XFree(pszReturnData);
}
return;
@@ -974,7 +974,7 @@ void nxagentNotifySelection(XEvent *X)
}
/*
- * free(pszReturnData);
+ * XFree(pszReturnData);
* pszReturnData=NULL;
*/