mirror of
https://github.com/RGBCube/serenity
synced 2025-05-30 23:38:11 +00:00
ProcessManager: Fix timer leak in ProcessStacksWidget
CObjects should really be reference-counted instead of this error-prone (but convenient) model. Found by PVS-Studio.
This commit is contained in:
parent
488d57750d
commit
e8b3a539b4
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue