Fix mem leak

svn path=/trunk/KDE/kdelibs/; revision=1058199
This commit is contained in:
Laurent Montel 2009-12-04 08:31:53 +00:00
parent f10d58bb53
commit a03e56aa19

View File

@ -356,6 +356,7 @@ bool Package::installPackage(const QString &package,
if (!archive->open(QIODevice::ReadOnly)) {
kWarning() << "Could not open package file:" << package;
delete archive;
return false;
}
@ -372,6 +373,7 @@ bool Package::installPackage(const QString &package,
path.append(entry->name()).append("/");
}
}
delete archive;
}
QString metadataPath = path + "metadata.desktop";