Common Weakness Enumeration
CWE Definition / CWE-1045
CWE-1045: Parent Class with a Virtual Destructor and a Child Class without a Virtual Destructor
A parent class has a virtual destructor method, but the parent has a child class that does not have a virtual destructor.
Published:2 Jul 2018
Organization:MITRE
Modified:11 Dec 2025
Related Weakness
CWE-1076: Insufficient Adherence to Expected Conventions
