Memory leak.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=845526
This commit is contained in:
Alex Merry 2008-08-11 23:04:07 +00:00
parent 8f5f4d8294
commit 1eecd3f819

View File

@ -978,7 +978,8 @@ void Icon::setText(const QString& text)
d->currentSize = QSizeF(-1, -1);
//try to relayout, needed if an icon was never shown before
if (!isVisible()) {
layoutIcons(new QStyleOptionGraphicsItem);
QStyleOptionGraphicsItem styleoption;
layoutIcons(&styleoption);
}
resize(sizeFromIconSize(d->iconSize.width()));
}