From 685ee11822ac4fea59c4a5c26b5ccca7684194ec Mon Sep 17 00:00:00 2001 From: David Edmundson Date: Wed, 11 Feb 2015 14:49:23 +0100 Subject: [PATCH] Fix leak in ContainmentActions Change-Id: I41c9b9c224b36b045034755b07a92f2bdfe9f40e --- src/plasma/containmentactions.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/plasma/containmentactions.cpp b/src/plasma/containmentactions.cpp index 3abb7fe93..f24bdaca3 100644 --- a/src/plasma/containmentactions.cpp +++ b/src/plasma/containmentactions.cpp @@ -50,6 +50,8 @@ ContainmentActions::ContainmentActions(QObject *parentObject, const QVariantList : d(new ContainmentActionsPrivate(KService::serviceByStorageId(args.count() > 0 ? args[0].toString() : QString()), this)) { + setParent(parentObject); + // now remove first item since those are managed by Wallpaper and subclasses shouldn't // need to worry about them. yes, it violates the constness of this var, but it lets us add // or remove items later while applets can just pretend that their args always start at 0