Project

General

Profile

Actions

Bug #6124

closed

WValidator destructor is not virtual

Added by Cristian Ciocaltea over 6 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
High
Assignee:
-
Target version:
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

Actions #1

Updated by Roel Standaert over 6 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.

Actions #2

Updated by Roel Standaert over 6 years ago

  • Status changed from New to Resolved
Actions #3

Updated by Roel Standaert over 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF