Browse Source

Don't double delete a pointer

`m_searchFilterAction` is owned by Qt, so we shouldn't delete it
manually.
adaptive-webui-19844
Chocobo1 6 years ago
parent
commit
626b9eb380
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C
  1. 2
      src/gui/mainwindow.cpp

2
src/gui/mainwindow.cpp

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

Loading…
Cancel
Save