Commit 5597f2ea authored by Mike Gabriel's avatar Mike Gabriel

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.
parent d4465b71
...@@ -754,7 +754,7 @@ void nxagentCollectPropertyEvent(int resource) ...@@ -754,7 +754,7 @@ void nxagentCollectPropertyEvent(int resource)
if (pszReturnData != NULL) if (pszReturnData != NULL)
{ {
free(pszReturnData); XFree(pszReturnData);
} }
return; return;
...@@ -796,7 +796,7 @@ void nxagentCollectPropertyEvent(int resource) ...@@ -796,7 +796,7 @@ void nxagentCollectPropertyEvent(int resource)
if (pszReturnData != NULL) if (pszReturnData != NULL)
{ {
free(pszReturnData); XFree(pszReturnData);
} }
return; return;
...@@ -974,7 +974,7 @@ void nxagentNotifySelection(XEvent *X) ...@@ -974,7 +974,7 @@ void nxagentNotifySelection(XEvent *X)
} }
/* /*
* free(pszReturnData); * XFree(pszReturnData);
* pszReturnData=NULL; * pszReturnData=NULL;
*/ */
......
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