diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-08-01 11:09:41 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-08-01 11:12:35 +0200 |
commit | e8b3a539b4d7a300f076aaec7411112ec877f7dd (patch) | |
tree | 0931007552d3787dd93608e6f13949b31f3ef13e /Applications | |
parent | 488d57750d87c57935c505819f4d86f8b504e777 (diff) | |
download | serenity-e8b3a539b4d7a300f076aaec7411112ec877f7dd.zip |
ProcessManager: Fix timer leak in ProcessStacksWidget
CObjects should really be reference-counted instead of this error-prone
(but convenient) model.
Found by PVS-Studio.
Diffstat (limited to 'Applications')
-rw-r--r-- | Applications/ProcessManager/ProcessStacksWidget.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Applications/ProcessManager/ProcessStacksWidget.cpp b/Applications/ProcessManager/ProcessStacksWidget.cpp index 4ebc0f09f8..d7e4a822da 100644 --- a/Applications/ProcessManager/ProcessStacksWidget.cpp +++ b/Applications/ProcessManager/ProcessStacksWidget.cpp @@ -11,7 +11,7 @@ ProcessStacksWidget::ProcessStacksWidget(GWidget* parent) m_stacks_editor = new GTextEditor(GTextEditor::Type::MultiLine, this); m_stacks_editor->set_readonly(true); - m_timer = new CTimer(1000, [this] { refresh(); }); + m_timer = new CTimer(1000, [this] { refresh(); }, this); } ProcessStacksWidget::~ProcessStacksWidget() |