mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-01 00:02:45 +03:00
feat(ui): clean up draw layers and batches in CSimpleFrame dtor
This commit is contained in:
parent
daba2a1ffd
commit
c2eedc1d47
@ -73,6 +73,14 @@ CSimpleFrame::~CSimpleFrame() {
|
||||
delete this->m_titleRegion;
|
||||
}
|
||||
|
||||
for (int32_t layer = 0; layer < NUM_SIMPLEFRAME_DRAWLAYERS; layer++) {
|
||||
this->m_drawlayers[layer].UnlinkAll();
|
||||
|
||||
if (this->m_batch[layer]) {
|
||||
delete this->m_batch[layer];
|
||||
}
|
||||
}
|
||||
|
||||
// TODO
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user