Make ui::selector release children on destroy

This commit is contained in:
Nikita Lisitsa 2022-03-13 17:20:20 +03:00
parent 11b904c890
commit 6c4c0d8305
2 changed files with 6 additions and 0 deletions

View file

@ -11,6 +11,7 @@ namespace psemek::ui
: element
{
selector();
~selector() override;
children_range children() const override { return container_.children(); }

View file

@ -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;