aboutsummaryrefslogtreecommitdiffstats
path: root/common/rfb/CSecurityVeNCrypt.cxx
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2021-06-10 16:36:46 +0200
committerPierre Ossman <ossman@cendio.se>2021-06-11 09:42:44 +0200
commitcef285311fda1cadbdcadeeb3259a6ae032dd652 (patch)
tree7cef1c61426bb6ebaddeb319b97cf861d6ff4afe /common/rfb/CSecurityVeNCrypt.cxx
parent9c407d2a0bc11697ae8413a8e6bea21813fd6072 (diff)
downloadtigervnc-cef285311fda1cadbdcadeeb3259a6ae032dd652.tar.gz
tigervnc-cef285311fda1cadbdcadeeb3259a6ae032dd652.zip
Remove unneeded NULL checks
It's perfectly safe to delete NULL pointers, so simplify things by removing these checks.
Diffstat (limited to 'common/rfb/CSecurityVeNCrypt.cxx')
-rw-r--r--common/rfb/CSecurityVeNCrypt.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/common/rfb/CSecurityVeNCrypt.cxx b/common/rfb/CSecurityVeNCrypt.cxx
index 98dad494..a6b270e1 100644
--- a/common/rfb/CSecurityVeNCrypt.cxx
+++ b/common/rfb/CSecurityVeNCrypt.cxx
@@ -55,8 +55,7 @@ CSecurityVeNCrypt::CSecurityVeNCrypt(CConnection* cc, SecurityClient* sec)
CSecurityVeNCrypt::~CSecurityVeNCrypt()
{
- if (availableTypes)
- delete[] availableTypes;
+ delete[] availableTypes;
}
bool CSecurityVeNCrypt::processMsg()