aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt
diff options
context:
space:
mode:
authorMoshe Kaplan <me@moshekaplan.com>2021-06-13 21:33:16 -0400
committerAndersBroman <a.broman58@gmail.com>2021-09-04 07:47:34 +0000
commit8ef6f04f5ac5f927d92e2f20bb79beeefe7c2e06 (patch)
treea639869435ab5a43dbc9a0fc47ba392545a5a2f3 /ui/qt
parenteb83421c96c486aab492a97315f8b56f6a7614ec (diff)
Qt: Debounce Preferences -> Advanced menu : Avoid leaking memory
Free the QTimer in the PreferencesDialog's destructor to avoid leaking memory.
Diffstat (limited to 'ui/qt')
-rw-r--r--ui/qt/preferences_dialog.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/qt/preferences_dialog.cpp b/ui/qt/preferences_dialog.cpp
index 44003cc8a6..b1cbc70d56 100644
--- a/ui/qt/preferences_dialog.cpp
+++ b/ui/qt/preferences_dialog.cpp
@@ -141,6 +141,7 @@ PreferencesDialog::PreferencesDialog(QWidget *parent) :
PreferencesDialog::~PreferencesDialog()
{
delete pd_ui_;
+ delete searchLineEditTimer;
prefs_modules_foreach_submodules(NULL, module_prefs_clean_stash, NULL);
}