aboutsummaryrefslogtreecommitdiff
path: root/nxcomp/src
diff options
context:
space:
mode:
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;