summaryrefslogtreecommitdiff
path: root/cmds/bootanimation/BootAnimation.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 /cmds/bootanimation/BootAnimation.cpp
parent6e208cddad3315c4e38accdb801908b2b9b5cbbd (diff)
parent688ff4cf0f93d1a886437884f23874e5595d59a3 (diff)
Merge "Track removal of refcounts from FileMap."
Diffstat (limited to 'cmds/bootanimation/BootAnimation.cpp')
-rw-r--r--cmds/bootanimation/BootAnimation.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmds/bootanimation/BootAnimation.cpp b/cmds/bootanimation/BootAnimation.cpp
index 1d4de22e4049..bb25ec6d12d3 100644
--- a/cmds/bootanimation/BootAnimation.cpp
+++ b/cmds/bootanimation/BootAnimation.cpp
@@ -179,7 +179,7 @@ status_t BootAnimation::initTexture(const Animation::Frame& frame)
// FileMap memory is never released until application exit.
// Release it now as the texture is already loaded and the memory used for
// the packed resource can be released.
- frame.map->release();
+ delete frame.map;
// ensure we can call getPixels(). No need to call unlock, since the
// bitmap will go out of scope when we return from this method.
@@ -446,7 +446,7 @@ bool BootAnimation::readFile(const char* name, String8& outString)
}
outString.setTo((char const*)entryMap->getDataPtr(), entryMap->getDataLength());
- entryMap->release();
+ delete entryMap;
return true;
}