Don't double delete a pointer

`m_searchFilterAction` is owned by Qt, so we shouldn't delete it
manually.
This commit is contained in:
Chocobo1 2018-11-05 17:07:57 +08:00
parent a57a026f4c
commit 626b9eb380
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C

View File

@ -802,8 +802,6 @@ void MainWindow::cleanup()
m_programUpdateTimer->stop();
#endif
delete m_searchFilterAction;
// remove all child widgets
while (QWidget *w = findChild<QWidget * >())
delete w;