Memory leak with Form Validator
Added by Boris N over 12 years ago
username = new Wt::WLineEdit();
I created my own class Register_widget (inherited from WContainerWidget), that has username as field
username is linked to Register_widget.
Then I test this Register_widget:
int i = 0;
for (i=0; i<10000; i)
r = new Register_widget();
There are memory leaks
When I test it without WRegExpValidator - there are no memory leaks
RE: Memory leak with Form Validator - Added by Koen Deforche over 12 years ago
You're quite right. I've fixed it in git (ownership of the WValidator should be transferred to the widget it is set, unless it already has a parent).