EGD-2964 application notes - removed leak

This commit is contained in:
Adam Dobrowolski
2020-04-30 08:51:53 +02:00
committed by pholat
parent a9ea1eb9dc
commit 10dbf19c41
2 changed files with 2 additions and 18 deletions

View File

@@ -57,15 +57,7 @@ namespace gui
}
void NotesMainWindow::destroyInterface()
{
AppWindow::destroyInterface();
if (list) {
removeWidget(list);
delete list;
list = nullptr;
};
children.clear();
erase();
delete notesModel;
}