summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Feck <christoph@maxiom.de>2011-10-25 23:16:29 (GMT)
committerChristoph Feck <christoph@maxiom.de>2011-10-25 23:16:29 (GMT)
commitb6dbabf76a355dfee869ff076d50cce25184b57c (patch)
tree0d554c418fe422138248c49008b6c0e1e95844d7
parent8ca9b395f8fe5c2e92ff7eea11cbe783c8d5ff85 (diff)
Clear layout pointer after deletion
This appearantly works around a double-deletion issue. Until the real cause has been found, I commit this change based on a patch by Raul Fernandes to 4.7 branch. Thanks Raul for investigation and patch! CCBUG: 275286
-rw-r--r--plasma/desktop/applets/tasks/taskgroupitem.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/plasma/desktop/applets/tasks/taskgroupitem.cpp b/plasma/desktop/applets/tasks/taskgroupitem.cpp
index 5ff5896..6b23b71 100644
--- a/plasma/desktop/applets/tasks/taskgroupitem.cpp
+++ b/plasma/desktop/applets/tasks/taskgroupitem.cpp
@@ -80,6 +80,7 @@ TaskGroupItem::TaskGroupItem(QGraphicsWidget *parent, Tasks *applet)
TaskGroupItem::~TaskGroupItem()
{
delete m_tasksLayout;
+ m_tasksLayout = 0;
}
bool TaskGroupItem::isSplit()