Static Code Analysis : Add virtual attribute to destructor of classes that have virtual methods inherited from a base class
This commit is contained in:
parent
f19cfb3361
commit
d6817f941a
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue