Commit c2464481 authored by Laurent Montel's avatar Laurent Montel
Browse files

Fix mem leak found by valgrind

svn path=/branches/KDE_2_2_BRANCH/kdeutils/kdf/; revision=142411
parent ded96d5f
......@@ -92,11 +92,12 @@ const QPixmap &CListView::icon( const QString &iconName, bool drawBorder )
qp.end();
pix->setMask(*bm);
}
QPainter qp(pix);
qp.setPen(QPen(red,1));
qp.drawRect(0,0,pix->width(),pix->height());
qp.end();
delete bm;
}
}
mPixDict.replace( iconName, pix );
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment