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

Commit 957efcdc authored by Elliott Hughes's avatar Elliott Hughes Committed by Gerrit Code Review
Browse files

Revert "fix potential memory leak"

This reverts commit bc268b90

Change-Id: I07f49bd0cfecc43bc761d2b0635c9915a8e30272
parent bc268b90
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -5037,14 +5037,11 @@ status_t ResTable::parsePackage(const ResTable_package* const pkg,
        } else {
            group = mPackageGroups.itemAt(idx-1);
            if (group == NULL) {
                delete package;
                return (mError=UNKNOWN_ERROR);
            }
        }
        err = group->packages.add(package);
        if (err < NO_ERROR) {
            delete group;
            delete package;
            return (mError=err);
        }
    } else {