Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2307bb2a authored by Sean Lu's avatar Sean Lu Committed by android-build-merger
Browse files

Merge "[Resources] house keeping in TypeList" am: ff2e03cf am: 516bd5f8 am: 2d604852

am: 5386fcf9

Change-Id: Iafa12b6189d9b97354adcff2a481602db9522c48
parents 2ac1690b 5386fcf9
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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();