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

Commit 5386fcf9 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

Change-Id: I983ab5312b484a8d3f8adafd693f2435c460ab5a
parents b0bb3732 2d604852
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();