Fix leak in ContainmentActions
Change-Id: I41c9b9c224b36b045034755b07a92f2bdfe9f40e
This commit is contained in:
parent
5f9ecfb6e1
commit
685ee11822
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user