mirror of
https://github.com/whoahq/whoa.git
synced 2026-11-10 00:28:23 +03:00
feat(ui): delete frames in CSimpleTop dtor
This commit is contained in:
1 file changed
+5
@@ -400,6 +400,11 @@ CSimpleTop::CSimpleTop() : CLayoutFrame() {
|
||||
CSimpleTop::~CSimpleTop() {
|
||||
// TODO
|
||||
|
||||
while (auto frame = this->m_frames.Head()) {
|
||||
this->m_frames.UnlinkNode(frame);
|
||||
delete frame;
|
||||
}
|
||||
|
||||
for (auto& strata : this->m_strata) {
|
||||
delete strata;
|
||||
strata = nullptr;
|
||||
|
||||
Reference in new issue
Block a user