and the winner 2003 of the most obvious, most blatant xserver ressource leak
goes to ... tamtam... redmond! svn path=/trunk/kdebase/kwin/; revision=275837
This commit is contained in:
parent
98b3f6d9ba
commit
8d5faa18fc
1 changed files with 6 additions and 7 deletions
|
@ -471,10 +471,10 @@ void RedmondDeco::slotReset()
|
|||
|
||||
void RedmondDeco::iconChange()
|
||||
{
|
||||
QPixmap *miniIcon = new QPixmap(icon().pixmap(QIconSet::Small, QIconSet::Normal));
|
||||
QPixmap miniIcon = icon().pixmap(QIconSet::Small, QIconSet::Normal);
|
||||
|
||||
if (!miniIcon->isNull())
|
||||
button[BtnMenu]->setPixmap(*miniIcon);
|
||||
if (!miniIcon.isNull())
|
||||
button[BtnMenu]->setPixmap(miniIcon);
|
||||
else
|
||||
button[BtnMenu]->setPixmap(*defaultMenuPix);
|
||||
|
||||
|
@ -772,10 +772,9 @@ QSize RedmondDeco::minimumSize() const
|
|||
|
||||
void RedmondDeco::activeChange()
|
||||
{
|
||||
QPixmap *miniIcon = new QPixmap(icon().pixmap(QIconSet::Small, QIconSet::Normal));
|
||||
|
||||
if (!miniIcon->isNull()) {
|
||||
button[BtnMenu]->setPixmap(*miniIcon);
|
||||
QPixmap miniIcon = icon().pixmap(QIconSet::Small, QIconSet::Normal);
|
||||
if (!miniIcon.isNull()) {
|
||||
button[BtnMenu]->setPixmap(miniIcon);
|
||||
} else {
|
||||
button[BtnMenu]->setPixmap(kdelogo);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue