feat(ui): clean up draw layers and batches in CSimpleFrame dtor

This commit is contained in:
fallenoak 2026-01-25 14:50:16 -06:00
parent daba2a1ffd
commit c2eedc1d47
No known key found for this signature in database
GPG Key ID: 7628F8E61AEA070D

View File

@ -73,6 +73,14 @@ CSimpleFrame::~CSimpleFrame() {
delete this->m_titleRegion; 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 // TODO
} }