Fix leak in ContainmentActions

Change-Id: I41c9b9c224b36b045034755b07a92f2bdfe9f40e
This commit is contained in:
David Edmundson 2015-02-11 14:49:23 +01:00
parent 5f9ecfb6e1
commit 685ee11822

View File

@ -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