commit | 82d22e64990288ebbf95ba4d73e51de3540337b8 | [log] [tgz] |
---|---|---|
author | Pierre Ossman <ossman@cendio.se> | Fri Sep 21 15:26:37 2018 +0200 |
committer | Pierre Ossman <ossman@cendio.se> | Fri Sep 21 15:26:37 2018 +0200 |
tree | 15051e9937ee9d3b592a1bac418b9c0d8b8a27a9 | |
parent | 6fba8ca7e7c896d3758b8401b35cee0849778fbd [diff] [blame] |
Remove destroy functions These are just confusing and obfuscating. Do a normal delete of these objects instead.
diff --git a/common/rfb/CConnection.cxx b/common/rfb/CConnection.cxx index ce489b1..d7a9d85 100644 --- a/common/rfb/CConnection.cxx +++ b/common/rfb/CConnection.cxx
@@ -49,7 +49,8 @@ CConnection::~CConnection() { setFramebuffer(NULL); - if (csecurity) csecurity->destroy(); + if (csecurity) + delete csecurity; delete reader_; reader_ = 0; delete writer_;