diff options
Diffstat (limited to 'nx-X11/programs/Xserver/hw/nxagent/Clipboard.c')
-rw-r--r-- | nx-X11/programs/Xserver/hw/nxagent/Clipboard.c | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c b/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c index d26d3524a..f34849d9a 100644 --- a/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c +++ b/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c @@ -974,11 +974,8 @@ void nxagentNotifySelection(XEvent *X) } /* - * if (pszReturnData) - * { - * free(pszReturnData); - * pszReturnData=NULL; - * } + * free(pszReturnData); + * pszReturnData=NULL; */ } @@ -1500,11 +1497,8 @@ int nxagentInitClipboard(WindowPtr pWin) fprintf(stderr, "nxagentInitClipboard: Got called.\n"); #endif - if (lastSelectionOwner != NULL) - { - free(lastSelectionOwner); - lastSelectionOwner = NULL; - } + free(lastSelectionOwner); + lastSelectionOwner = NULL; lastSelectionOwner = (SelectionOwner *) malloc(2 * sizeof(SelectionOwner)); |