summaryrefslogtreecommitdiffstats
path: root/cmds/idmap/scan.cpp
diff options
context:
space:
mode:
authorNarayan Kamath <narayan@google.com>2015-02-23 15:47:54 +0000
committerNarayan Kamath <narayan@google.com>2015-02-23 15:47:54 +0000
commit688ff4cf0f93d1a886437884f23874e5595d59a3 (patch)
treeb8ef91775dfc3dff86d05aa5638b17dee597ca91 /cmds/idmap/scan.cpp
parentadb52ef7034d4d3e0eee58cedae2a343d29771b9 (diff)
downloadframeworks_base-688ff4cf0f93d1a886437884f23874e5595d59a3.zip
frameworks_base-688ff4cf0f93d1a886437884f23874e5595d59a3.tar.gz
frameworks_base-688ff4cf0f93d1a886437884f23874e5595d59a3.tar.bz2
Track removal of refcounts from FileMap.
Use delete instead of release. Change-Id: I25c841b368aa9d51e9259399b94cafa2bbb7a076
Diffstat (limited to 'cmds/idmap/scan.cpp')
-rw-r--r--cmds/idmap/scan.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/cmds/idmap/scan.cpp b/cmds/idmap/scan.cpp
index bbe6eef..197e36b 100644
--- a/cmds/idmap/scan.cpp
+++ b/cmds/idmap/scan.cpp
@@ -147,20 +147,20 @@ namespace {
char *buf = new char[uncompLen];
if (NULL == buf) {
ALOGW("%s: failed to allocate %zd byte\n", __FUNCTION__, uncompLen);
- dataMap->release();
+ delete dataMap;
return -1;
}
StreamingZipInflater inflater(dataMap, uncompLen);
if (inflater.read(buf, uncompLen) < 0) {
ALOGW("%s: failed to inflate %zd byte\n", __FUNCTION__, uncompLen);
delete[] buf;
- dataMap->release();
+ delete dataMap;
return -1;
}
int priority = parse_manifest(buf, uncompLen, target_package_name);
delete[] buf;
- dataMap->release();
+ delete dataMap;
return priority;
}
}