From: Pierre Ossman Date: Thu, 10 Jun 2021 14:37:34 +0000 (+0200) Subject: Properly clean up client VeNCrypt handling X-Git-Tag: v1.11.90~39^2~2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=fa2d8cd455a9f1ec632a493edc09e0c661ed9d51;p=tigervnc.git Properly clean up client VeNCrypt handling 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. --- diff --git a/common/rfb/CSecurityVeNCrypt.cxx b/common/rfb/CSecurityVeNCrypt.cxx index a6b270e1..c0fe3273 100644 --- a/common/rfb/CSecurityVeNCrypt.cxx +++ b/common/rfb/CSecurityVeNCrypt.cxx @@ -56,6 +56,7 @@ CSecurityVeNCrypt::CSecurityVeNCrypt(CConnection* cc, SecurityClient* sec) CSecurityVeNCrypt::~CSecurityVeNCrypt() { delete[] availableTypes; + delete csecurity; } bool CSecurityVeNCrypt::processMsg()