[apps] VariableBoxController: when disappearing, tidy the layouts from

the TreePool
This commit is contained in:
Émilie Feral
2018-09-14 11:54:15 +02:00
parent 42c7c26414
commit f394a799ea

View File

@@ -196,6 +196,10 @@ void VariableBoxController::ContentViewController::resetPage() {
void VariableBoxController::ContentViewController::viewDidDisappear() {
m_selectableTableView.deselectTable();
// Tidy the layouts used to display the VariableBoxController to clean TreePool
for (int i = 0; i < k_maxNumberOfDisplayedRows; i++) {
m_leafCells[i].setLayoutRef(LayoutRef());
}
ViewController::viewDidDisappear();
}