aboutsummaryrefslogtreecommitdiff
path: root/nxcomp/src
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2017-12-27 12:15:47 +0100
committerUlrich Sibiller <uli42@gmx.de>2017-12-29 02:31:26 +0100
commitf1905c86470e5b76d72af12c9c77ecc719096b3f (patch)
treef96cded8efab77da703996252e0dfbd7ef7b04fe /nxcomp/src
parentb593edeb2b2d62434ca19418974227cc4ecaefa1 (diff)
downloadnx-libs-f1905c86470e5b76d72af12c9c77ecc719096b3f.tar.gz
nx-libs-f1905c86470e5b76d72af12c9c77ecc719096b3f.tar.bz2
nx-libs-f1905c86470e5b76d72af12c9c77ecc719096b3f.zip
Loop.cpp: delete structs when no longer required
Fix another memleak (partially) fixes ArcticaProject/nx-libs#612
Diffstat (limited to 'nxcomp/src')
-rw-r--r--nxcomp/src/Loop.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/nxcomp/src/Loop.cpp b/nxcomp/src/Loop.cpp
index cc0efa361..5b6c2b4bc 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;