Skip to content

Commit

Permalink
Fix potential crash
Browse files Browse the repository at this point in the history
`m_searchFilterAction` is allocated inside Qt, so we shouldn't delete it
manually.

Closes qbittorrent#9819.
  • Loading branch information
Chocobo1 committed Nov 5, 2018
1 parent a57a026 commit f680c3c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/gui/mainwindow.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit f680c3c

Please sign in to comment.