mirror of
https://github.com/aseprite/aseprite.git
synced 2025-02-21 03:40:57 +00:00
Fix memory leak on RecentListBox
This commit is contained in:
parent
94e56ad97a
commit
035916dce3
@ -98,8 +98,11 @@ RecentListBox::RecentListBox()
|
||||
|
||||
void RecentListBox::rebuildList()
|
||||
{
|
||||
while (lastChild())
|
||||
removeChild(lastChild());
|
||||
while (lastChild()) {
|
||||
auto child = lastChild();
|
||||
removeChild(child);
|
||||
child->deferDelete();
|
||||
}
|
||||
|
||||
onRebuildList();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user