From 626b9eb380a721574082d9d2664a7219dd92cec6 Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Mon, 5 Nov 2018 17:07:57 +0800 Subject: [PATCH] Don't double delete a pointer `m_searchFilterAction` is owned by Qt, so we shouldn't delete it manually. --- src/gui/mainwindow.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/gui/mainwindow.cpp b/src/gui/mainwindow.cpp index 9de5170e5..d91e3f29b 100644 --- a/src/gui/mainwindow.cpp +++ b/src/gui/mainwindow.cpp @@ -802,8 +802,6 @@ void MainWindow::cleanup() m_programUpdateTimer->stop(); #endif - delete m_searchFilterAction; - // remove all child widgets while (QWidget *w = findChild()) delete w;