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

Commit a9aa9f04 authored by Adam Lesinski's avatar Adam Lesinski Committed by Android (Google) Code Review
Browse files

Merge "Fix memory leak in ResTable" into lmp-dev

parents 97bf4546 7f668d03
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -2939,7 +2939,7 @@ struct ResTable::PackageGroup
            for (size_t i = 0; i < bags->size(); i++) {
            for (size_t i = 0; i < bags->size(); i++) {
                TABLE_NOISY(printf("type=%d\n", i));
                TABLE_NOISY(printf("type=%d\n", i));
                const TypeList& typeList = types[i];
                const TypeList& typeList = types[i];
                if (typeList.isEmpty()) {
                if (!typeList.isEmpty()) {
                    bag_set** typeBags = bags->get(i);
                    bag_set** typeBags = bags->get(i);
                    TABLE_NOISY(printf("typeBags=%p\n", typeBags));
                    TABLE_NOISY(printf("typeBags=%p\n", typeBags));
                    if (typeBags) {
                    if (typeBags) {