mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-11 11:08:02 -06:00
Static Code Analysis : Add virtual attribute to destructor of classes that have virtual methods inherited from a base class
This commit is contained in:
@@ -35,7 +35,7 @@ public:
|
||||
InterlockedIncrement (&ObjectCount);
|
||||
}
|
||||
|
||||
~TrueCryptFormatCom ()
|
||||
virtual ~TrueCryptFormatCom ()
|
||||
{
|
||||
if (InterlockedDecrement (&ObjectCount) == 0)
|
||||
PostThreadMessage (MessageThreadId, WM_APP, 0, 0);
|
||||
|
||||
@@ -31,7 +31,7 @@ public:
|
||||
InterlockedIncrement (&ObjectCount);
|
||||
}
|
||||
|
||||
~TrueCryptMainCom ()
|
||||
virtual ~TrueCryptMainCom ()
|
||||
{
|
||||
if (InterlockedDecrement (&ObjectCount) == 0)
|
||||
PostThreadMessage (MessageThreadId, WM_APP, 0, 0);
|
||||
|
||||
Reference in New Issue
Block a user