aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2019-07-23 20:12:31 +0200
committerUlrich Sibiller <uli42@gmx.de>2019-08-06 21:57:32 +0200
commit504b1400eaf0fe5f2b0544857021484213825b01 (patch)
tree028c3bdd6aa365aa50412a0b6fd1bf8ef38f4925 /nx-X11/programs/Xserver
parent4421f787ddf102889ee65cd310cc50369540dbc8 (diff)
downloadnx-libs-504b1400eaf0fe5f2b0544857021484213825b01.tar.gz
nx-libs-504b1400eaf0fe5f2b0544857021484213825b01.tar.bz2
nx-libs-504b1400eaf0fe5f2b0544857021484213825b01.zip
Clipboard.c: use SAFE_free
Diffstat (limited to 'nx-X11/programs/Xserver')
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Clipboard.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c b/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
index 9c518801b..024d685ba 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
@@ -1783,8 +1783,7 @@ int nxagentInitClipboard(WindowPtr pWin)
fprintf(stderr, "%s: Got called.\n", __func__);
#endif
- free(lastSelectionOwner);
- lastSelectionOwner = NULL;
+ SAFE_free(lastSelectionOwner);
lastSelectionOwner = (SelectionOwner *) malloc(nxagentMaxSelections * sizeof(SelectionOwner));