[X2Go-Commits] [nx-libs] 156/219: Clipboard.c: use SAFE_free

git-admin at x2go.org git-admin at x2go.org
Sat Sep 28 12:10:45 CEST 2019


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch 3.6.x
in repository nx-libs.

commit 504b1400eaf0fe5f2b0544857021484213825b01
Author: Ulrich Sibiller <uli42 at gmx.de>
Date:   Tue Jul 23 20:12:31 2019 +0200

    Clipboard.c: use SAFE_free
---
 nx-X11/programs/Xserver/hw/nxagent/Clipboard.c | 3 +--
 1 file changed, 1 insertion(+), 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));
 

--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/nx-libs.git


More information about the x2go-commits mailing list