]> source.dussan.org Git - tigervnc.git/commitdiff
Properly clean up client VeNCrypt handling
authorPierre Ossman <ossman@cendio.se>
Thu, 10 Jun 2021 14:37:34 +0000 (16:37 +0200)
committerPierre Ossman <ossman@cendio.se>
Fri, 11 Jun 2021 07:42:44 +0000 (09:42 +0200)
We would leak the security module below the top client VeNCrypt module,
meaning that those modules would not get a chance to shut down
gracefully.

common/rfb/CSecurityVeNCrypt.cxx

index a6b270e17277b298c95140733304e2d29f1a6809..c0fe3273f041e390d21ae57452e57d15bb6ec02e 100644 (file)
@@ -56,6 +56,7 @@ CSecurityVeNCrypt::CSecurityVeNCrypt(CConnection* cc, SecurityClient* sec)
 CSecurityVeNCrypt::~CSecurityVeNCrypt()
 {
   delete[] availableTypes;
+  delete csecurity;
 }
 
 bool CSecurityVeNCrypt::processMsg()