am a74d1332: am 81cfb63e: am d13b23a4: Merge "Revert "fix potential memory leak""

* commit 'a74d1332cc9f63dc3187cfa74befb448dab5e77d':
  Revert "fix potential memory leak"
This commit is contained in:
Elliott Hughes
2013-01-03 18:53:06 -08:00
committed by Android Git Automerger

View File

@ -5038,14 +5038,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 {