[X2Go-Commits] [nx-libs] 04/19: Loop.cpp: delete structs when no	longer required
    git-admin at x2go.org 
    git-admin at x2go.org
       
    Sat Dec 30 03:35:15 CET 2017
    
    
  
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 f1905c86470e5b76d72af12c9c77ecc719096b3f
Author: Ulrich Sibiller <uli42 at gmx.de>
Date:   Wed Dec 27 12:15:47 2017 +0100
    Loop.cpp: delete structs when no longer required
    
    Fix another memleak
    
    (partially) fixes ArcticaProject/nx-libs#612
---
 nxcomp/src/Loop.cpp | 2 ++
 1 file changed, 2 insertions(+)
diff --git a/nxcomp/src/Loop.cpp b/nxcomp/src/Loop.cpp
index cc0efa3..5b6c2b4 100644
--- a/nxcomp/src/Loop.cpp
+++ b/nxcomp/src/Loop.cpp
@@ -3952,6 +3952,7 @@ void SetupDisplaySocket(int &addr_family, sockaddr *&addr,
              << "for accessing DISPLAY=:" << xPort << ".\n";
 
         addr = (sockaddr *) xServerAddrABSTRACT;
+        delete xServerAddrUNIX;
         delete [] display;
         return;
 
@@ -3960,6 +3961,7 @@ void SetupDisplaySocket(int &addr_family, sockaddr *&addr,
         cerr << "Info" << ": Falling back to file system X11 socket "
              << "for accessing DISPLAY=:" << xPort << ".\n";
 
+        delete xServerAddrABSTRACT;
     #endif
 
     struct stat statInfo;
--
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