mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 20:15:17 +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
Notes:
sideshowbarker
2024-07-19 12:57:49 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/e8b3a539b4d
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
Reference in a new issue