Actions
Bug #13019
closed
MV
RM
Ensure that remove is consistently called
Bug #13019:
Ensure that remove is consistently called
Start date:
09/05/2024
Due date:
% Done:
0%
Estimated time:
Description
When a widget is removed from the tree, the destructor will be executed on the C++ side of Wt.
As the Java alternative, the remove() method is used. This can the per widget decide on the way the widget should behave when being "destructed", like cleaning up state or data.
There is however a case (or more cases?) where this isn't called. This happens when WTemplate::clear() is called on all its widgets. Those widgets are removed from the view, but not properly destructed using remove().
It seems this does correctly happen in WContainerWidget::clear().
This seemingly may be as easy as calling removeWidget(), but needs to be verified.
MV Updated by Matthias Van Ceulebroeck almost 2 years ago
- Target version changed from 4.11.1 to 4.11.2
RM Updated by Romain Mardulyn over 1 year ago
- Status changed from New to InProgress
- Assignee set to Romain Mardulyn
RM Updated by Romain Mardulyn over 1 year ago
- Status changed from InProgress to Review
- Assignee deleted (
Romain Mardulyn) - Target version changed from 4.11.2 to 4.11.3
MV Updated by Matthias Van Ceulebroeck over 1 year ago
- Target version changed from 4.11.3 to 604
MV Updated by Matthias Van Ceulebroeck 11 months ago
- Target version changed from 604 to 4.12.2
RM Updated by Romain Mardulyn 7 months ago
- Target version changed from 4.12.2 to 4.12.4
RM Updated by Romain Mardulyn 7 months ago
- Status changed from Review to Implemented @Emweb
- Assignee set to Romain Mardulyn
RM Updated by Romain Mardulyn 7 months ago
- Status changed from Implemented @Emweb to Closed
Actions