Skip to content

Commit

Permalink
Xserver/hw/nxagent/Clipboard.c: Fix free calls (free back to XFree).
Browse files Browse the repository at this point in the history
 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 #553.
  • Loading branch information
sunweaver committed Dec 15, 2017
1 parent d4465b7 commit 5597f2e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
Original file line number Diff line number Diff line change
Expand Up @@ -754,7 +754,7 @@ void nxagentCollectPropertyEvent(int resource)

if (pszReturnData != NULL)
{
free(pszReturnData);
XFree(pszReturnData);
}

return;
Expand Down Expand Up @@ -796,7 +796,7 @@ void nxagentCollectPropertyEvent(int resource)

if (pszReturnData != NULL)
{
free(pszReturnData);
XFree(pszReturnData);
}

return;
Expand Down Expand Up @@ -974,7 +974,7 @@ void nxagentNotifySelection(XEvent *X)
}

/*
* free(pszReturnData);
* XFree(pszReturnData);
* pszReturnData=NULL;
*/

Expand Down

0 comments on commit 5597f2e

Please sign in to comment.