From fa2d8cd455a9f1ec632a493edc09e0c661ed9d51 Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Thu, 10 Jun 2021 16:37:34 +0200 Subject: [PATCH] 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. --- common/rfb/CSecurityVeNCrypt.cxx | 1 + 1 file changed, 1 insertion(+) 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() -- 2.39.5