Make ui::selector release children on destroy
This commit is contained in:
parent
11b904c890
commit
6c4c0d8305
2 changed files with 6 additions and 0 deletions
|
|
@ -11,6 +11,7 @@ namespace psemek::ui
|
|||
: element
|
||||
{
|
||||
selector();
|
||||
~selector() override;
|
||||
|
||||
children_range children() const override { return container_.children(); }
|
||||
|
||||
|
|
|
|||
|
|
@ -14,6 +14,11 @@ namespace psemek::ui
|
|||
: container_(this)
|
||||
{}
|
||||
|
||||
selector::~selector()
|
||||
{
|
||||
release_children();
|
||||
}
|
||||
|
||||
void selector::reshape(geom::box<float, 2> const & box)
|
||||
{
|
||||
shape_.box = box;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue