summaryrefslogtreecommitdiffstats
path: root/libs/androidfw
diff options
context:
space:
mode:
authorAdam Lesinski <adamlesinski@google.com>2014-08-29 05:40:25 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-08-29 05:40:25 +0000
commit88fff68115122e1a48099a9a6edc792cf411a22f (patch)
treeace4d69c1f377ef0dc9257b8ced4db697a4936da /libs/androidfw
parent8a67d3f8e371e53f3685da216400ae64ab7be425 (diff)
parenta9aa9f045836ca03b378653728476f9a298f5260 (diff)
downloadframeworks_base-88fff68115122e1a48099a9a6edc792cf411a22f.zip
frameworks_base-88fff68115122e1a48099a9a6edc792cf411a22f.tar.gz
frameworks_base-88fff68115122e1a48099a9a6edc792cf411a22f.tar.bz2
am 995c771f: Merge "Fix memory leak in ResTable" into lmp-dev
* commit '995c771f7aef835972a5044f267a2d201449efab': Fix memory leak in ResTable
Diffstat (limited to 'libs/androidfw')
-rw-r--r--libs/androidfw/ResourceTypes.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/androidfw/ResourceTypes.cpp b/libs/androidfw/ResourceTypes.cpp
index 90879dd..690b1d6 100644
--- a/libs/androidfw/ResourceTypes.cpp
+++ b/libs/androidfw/ResourceTypes.cpp
@@ -2939,7 +2939,7 @@ struct ResTable::PackageGroup
for (size_t i = 0; i < bags->size(); i++) {
TABLE_NOISY(printf("type=%d\n", i));
const TypeList& typeList = types[i];
- if (typeList.isEmpty()) {
+ if (!typeList.isEmpty()) {
bag_set** typeBags = bags->get(i);
TABLE_NOISY(printf("typeBags=%p\n", typeBags));
if (typeBags) {