Actions
Bug #6124
closedWValidator destructor is not virtual
Start date:
11/13/2017
Due date:
% Done:
0%
Estimated time:
Description
Hi,
I've noticed the destructor in WValidator class is not declared virtual. This may cause memory leaks in derived classes meant to override some of the virtual methods exposed because there is no other superclass where a virtual destructor is declared.
Do I miss something?
Thanks,
Cristi
Updated by Roel Standaert about 7 years ago
Ah yes, WValidator
used to be a WObject
, so it used to be fine and it wasn't necessary to explicitly declare the destructor as virtual, but now we do.
Updated by Roel Standaert about 7 years ago
- Status changed from Resolved to Closed
Actions