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)) {
|
if (!archive->open(QIODevice::ReadOnly)) {
|
||||||
kWarning() << "Could not open package file:" << package;
|
kWarning() << "Could not open package file:" << package;
|
||||||
|
delete archive;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -372,6 +373,7 @@ bool Package::installPackage(const QString &package,
|
|||||||
path.append(entry->name()).append("/");
|
path.append(entry->name()).append("/");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
delete archive;
|
||||||
}
|
}
|
||||||
|
|
||||||
QString metadataPath = path + "metadata.desktop";
|
QString metadataPath = path + "metadata.desktop";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user