don't check pointer before to delete it

This commit is contained in:
Montel Laurent 2011-04-26 18:29:48 +02:00
parent fe1a615cc4
commit 955137bf2f

View File

@ -45,10 +45,8 @@ void PlasmoidPackageTest::init()
void PlasmoidPackageTest::cleanup()
{
if (p) {
delete p;
p = 0;
}
delete p;
p = 0;
// Clean things up.
QDir local = QDir::homePath() + QLatin1String("/.kde-unit-test/packageRoot");