diff options
author | Narayan Kamath <narayan@google.com> | 2015-02-23 15:47:54 +0000 |
---|---|---|
committer | Narayan Kamath <narayan@google.com> | 2015-02-23 15:47:54 +0000 |
commit | 688ff4cf0f93d1a886437884f23874e5595d59a3 (patch) | |
tree | b8ef91775dfc3dff86d05aa5638b17dee597ca91 /libs/androidfw/ZipFileRO.cpp | |
parent | adb52ef7034d4d3e0eee58cedae2a343d29771b9 (diff) |
Track removal of refcounts from FileMap.
Use delete instead of release.
Change-Id: I25c841b368aa9d51e9259399b94cafa2bbb7a076
Diffstat (limited to 'libs/androidfw/ZipFileRO.cpp')
-rw-r--r-- | libs/androidfw/ZipFileRO.cpp | 2 |
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; } |