don't check pointer before to delete it
This commit is contained in:
parent
fe1a615cc4
commit
955137bf2f
@ -45,10 +45,8 @@ void PlasmoidPackageTest::init()
|
||||
|
||||
void PlasmoidPackageTest::cleanup()
|
||||
{
|
||||
if (p) {
|
||||
delete p;
|
||||
p = 0;
|
||||
}
|
||||
|
||||
// Clean things up.
|
||||
QDir local = QDir::homePath() + QLatin1String("/.kde-unit-test/packageRoot");
|
||||
|
Loading…
Reference in New Issue
Block a user