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

This commit is contained in:
fallenoak committed 2026-01-25 14:50:16 -06:00
1 parent daba2a1ffd
commit c2eedc1d47
1 file changed
+8
+8
View File
@@ -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
}