diff options
author | Pierre Ossman <ossman@cendio.se> | 2011-05-19 14:47:43 +0000 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2011-05-19 14:47:43 +0000 |
commit | 6a9e2e63415b3e8ed473686968cd7b28274879e0 (patch) | |
tree | 783a437bbcf1ca9a4dd9e949da663309673dac89 | |
parent | d81e8f495c8ace9e96bbee05a6a53c84b32d2f79 (diff) | |
download | tigervnc-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.cxx | 3 |
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()); |