Static Code Analysis : Add virtual attribute to destructor of classes that have virtual methods inherited from a base class

This commit is contained in:
Mounir IDRASSI 2014-07-09 02:04:11 +02:00
parent f19cfb3361
commit d6817f941a
2 changed files with 2 additions and 2 deletions

View File

@ -35,7 +35,7 @@ public:
InterlockedIncrement (&ObjectCount);
}
~TrueCryptFormatCom ()
virtual ~TrueCryptFormatCom ()
{
if (InterlockedDecrement (&ObjectCount) == 0)
PostThreadMessage (MessageThreadId, WM_APP, 0, 0);

View File

@ -31,7 +31,7 @@ public:
InterlockedIncrement (&ObjectCount);
}
~TrueCryptMainCom ()
virtual ~TrueCryptMainCom ()
{
if (InterlockedDecrement (&ObjectCount) == 0)
PostThreadMessage (MessageThreadId, WM_APP, 0, 0);