since ExtenderItem relies on the Extender pointer it has, go through and delete all such items

svn path=/trunk/KDE/kdelibs/; revision=1107522
This commit is contained in:
Aaron J. Seigo 2010-03-25 21:44:45 +00:00
parent fb209051f2
commit 803bd9b463

View File

@ -118,6 +118,11 @@ Extender::Extender(Applet *applet)
Extender::~Extender()
{
foreach (ExtenderItem *item, d->attachedExtenderItems) {
disconnect(item, 0, this, 0);
delete item;
}
delete d;
}