Merge "[Resources] house keeping in TypeList" am: ff2e03cfce am: 516bd5f862

am: 2d604852ce

Change-Id: I983ab5312b484a8d3f8adafd693f2435c460ab5a
This commit is contained in:
Sean Lu
2017-06-26 23:09:29 +00:00
committed by android-build-merger

View File

@@ -3313,13 +3313,14 @@ struct ResTable::PackageGroup
clearBagCache();
const size_t numTypes = types.size();
for (size_t i = 0; i < numTypes; i++) {
const TypeList& typeList = types[i];
TypeList& typeList = types.editItemAt(i);
const size_t numInnerTypes = typeList.size();
for (size_t j = 0; j < numInnerTypes; j++) {
if (typeList[j]->package->owner == owner) {
delete typeList[j];
}
}
typeList.clear();
}
const size_t N = packages.size();