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/SConnection.cxx b/common/rfb/SConnection.cxx index 6b81055..ae43254 100644 --- a/common/rfb/SConnection.cxx +++ b/common/rfb/SConnection.cxx
@@ -64,7 +64,8 @@ SConnection::~SConnection() { - if (ssecurity) ssecurity->destroy(); + if (ssecurity) + delete ssecurity; delete reader_; reader_ = 0; delete writer_;