summaryrefslogtreecommitdiff
path: root/Applications
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-08-01 11:09:41 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-08-01 11:12:35 +0200
commite8b3a539b4d7a300f076aaec7411112ec877f7dd (patch)
tree0931007552d3787dd93608e6f13949b31f3ef13e /Applications
parent488d57750d87c57935c505819f4d86f8b504e777 (diff)
downloadserenity-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.cpp2
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()