Fix mem leak
svn path=/trunk/KDE/kdelibs/; revision=1058199
This commit is contained in:
parent
f10d58bb53
commit
a03e56aa19
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user