summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2011-05-19 14:47:43 +0000
committerPierre Ossman <ossman@cendio.se>2011-05-19 14:47:43 +0000
commit6a9e2e63415b3e8ed473686968cd7b28274879e0 (patch)
tree783a437bbcf1ca9a4dd9e949da663309673dac89
parentd81e8f495c8ace9e96bbee05a6a53c84b32d2f79 (diff)
downloadtigervnc-6a9e2e63415b3e8ed473686968cd7b28274879e0.tar.gz
tigervnc-6a9e2e63415b3e8ed473686968cd7b28274879e0.zip
Do some proper cleanup and delete the desktop window on close.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4431 3789f03b-4d11-0410-bbf8-ca57d06f2519
-rw-r--r--vncviewer/CConn.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/vncviewer/CConn.cxx b/vncviewer/CConn.cxx
index 5e00c44e..28c8abbc 100644
--- a/vncviewer/CConn.cxx
+++ b/vncviewer/CConn.cxx
@@ -102,6 +102,9 @@ CConn::~CConn()
{
OptionsDialog::removeCallback(handleOptions);
+ if (desktop)
+ delete desktop;
+
free(serverHost);
if (sock)
Fl::remove_fd(sock->getFd());