Commit b2704850 authored by Laurent Montel's avatar Laurent Montel 😁

Fix potential mem leak (found by asan)

parent cb6e76b2
......@@ -387,7 +387,7 @@ KSysGuardProcessList::KSysGuardProcessList(QWidget* parent, const QString &hostN
auto kService = KService::serviceByDesktopName(desktopName);
if (kService) {
auto action = new QAction(QIcon::fromTheme(kService->icon()),
kService->name(), nullptr);
kService->name(), this);
connect(action, &QAction::triggered, this,
[kService](bool) {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment