Fixed memory leak in ThumbOverviewTab

The filteredThumbCells list was never cleared and thus grew over time.
This commit is contained in:
0xboobface 2018-08-16 17:20:58 +02:00
parent 3620a305bf
commit 18b785811b
1 changed files with 2 additions and 0 deletions

View File

@ -211,6 +211,7 @@ public class ThumbOverviewTab extends Tab implements TabSelectionListener {
}
}
filteredThumbCells.clear();
filter();
moveActiveRecordingsToFront();
} finally {
@ -256,6 +257,7 @@ public class ThumbOverviewTab extends Tab implements TabSelectionListener {
for (ThumbCell thumbCell : filteredThumbCells) {
insert(thumbCell);
}
filteredThumbCells.clear();
return;
}