delete the widget first so that it gets a chance to clean up with the extenderitem it is in still around

svn path=/trunk/KDE/kdelibs/; revision=886236
This commit is contained in:
Aaron J. Seigo 2008-11-18 21:22:55 +00:00
parent 8a68d06f0d
commit ac412d787b

View File

@ -756,6 +756,8 @@ ExtenderItemPrivate::ExtenderItemPrivate(ExtenderItem *extenderItem, Extender *h
ExtenderItemPrivate::~ExtenderItemPrivate() ExtenderItemPrivate::~ExtenderItemPrivate()
{ {
delete widget;
widget = 0;
delete toplevel; delete toplevel;
} }