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 committed 2014-11-08 23:20:32 +01:00
1 parent f19cfb3361
commit d6817f941a
2 files changed
+2 -2

No files matched your search

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