From 957efcdc7331957df415faf9ab40f8bc08f5bd99 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Thu, 3 Jan 2013 17:38:57 -0800 Subject: Revert "fix potential memory leak" This reverts commit bc268b9014f211910e412a7fda96b6394ff2badc Change-Id: I07f49bd0cfecc43bc761d2b0635c9915a8e30272 --- libs/androidfw/ResourceTypes.cpp | 3 --- 1 file changed, 3 deletions(-) (limited to 'libs') diff --git a/libs/androidfw/ResourceTypes.cpp b/libs/androidfw/ResourceTypes.cpp index 683c49f..fc2cd9e 100644 --- a/libs/androidfw/ResourceTypes.cpp +++ b/libs/androidfw/ResourceTypes.cpp @@ -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 { -- cgit v1.1