summaryrefslogtreecommitdiff
path: root/libs/androidfw/ZipFileRO.cpp
diff options
context:
space:
mode:
author Narayan Kamath <narayan@google.com> 2015-02-24 12:50:55 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2015-02-24 12:50:57 +0000
commit72dc62ead214bdec5c46d42f4e859b139dba0a00 (patch)
tree2a93b6efb0bdd3fd46406466f6344623bd94f961 /libs/androidfw/ZipFileRO.cpp
parent6e208cddad3315c4e38accdb801908b2b9b5cbbd (diff)
parent688ff4cf0f93d1a886437884f23874e5595d59a3 (diff)
Merge "Track removal of refcounts from FileMap."
Diffstat (limited to 'libs/androidfw/ZipFileRO.cpp')
-rw-r--r--libs/androidfw/ZipFileRO.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/androidfw/ZipFileRO.cpp b/libs/androidfw/ZipFileRO.cpp
index ef0d07295120..af3d9b3bd716 100644
--- a/libs/androidfw/ZipFileRO.cpp
+++ b/libs/androidfw/ZipFileRO.cpp
@@ -200,7 +200,7 @@ FileMap* ZipFileRO::createEntryFileMap(ZipEntryRO entry) const
FileMap* newMap = new FileMap();
if (!newMap->create(mFileName, fd, ze.offset, actualLen, true)) {
- newMap->release();
+ delete newMap;
return NULL;
}