Project

General

Profile

Actions

Bug #13019

closed
MV RM

Ensure that remove is consistently called

Bug #13019: Ensure that remove is consistently called

Added by Matthias Van Ceulebroeck about 2 years ago. Updated 7 months ago.

Status:
Closed
Priority:
Normal
Category:
-
Target version:
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 Actions #1

  • Target version changed from 4.11.1 to 4.11.2

RM Updated by Romain Mardulyn over 1 year ago Actions #2

  • Status changed from New to InProgress
  • Assignee set to Romain Mardulyn

RM Updated by Romain Mardulyn over 1 year ago Actions #3

  • 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 Actions #4

  • Target version changed from 4.11.3 to 604

MV Updated by Matthias Van Ceulebroeck 11 months ago Actions #5

  • Target version changed from 604 to 4.12.2

RM Updated by Romain Mardulyn 7 months ago Actions #6

  • Target version changed from 4.12.2 to 4.12.4

RM Updated by Romain Mardulyn 7 months ago Actions #7

  • Status changed from Review to Implemented @Emweb
  • Assignee set to Romain Mardulyn

RM Updated by Romain Mardulyn 7 months ago Actions #8

  • Status changed from Implemented @Emweb to Closed
Actions

Also available in: PDF Atom