summaryrefslogtreecommitdiffstats
path: root/cmds
diff options
context:
space:
mode:
authorTom Marshall <tdm@cyngn.com>2015-10-28 16:43:42 -0700
committerGerrit Code Review <gerrit@cyanogenmod.org>2015-10-28 21:29:27 -0700
commit77ce8f848a14baccc89a195703ffde749d04d861 (patch)
tree1d009a1f5415582dbe38880703aba6ee68baa23f /cmds
parentbbef42271cbba0eda91d214186ff2be31eb3b608 (diff)
downloadframeworks_base-77ce8f848a14baccc89a195703ffde749d04d861.zip
frameworks_base-77ce8f848a14baccc89a195703ffde749d04d861.tar.gz
frameworks_base-77ce8f848a14baccc89a195703ffde749d04d861.tar.bz2
bootanimation: Do not free frame map
The frame map is reused when needSaveMem==true, resulting in a double free and segfault. The only side effect would seem to be failure to cleanup all resources at exit. That's acceptable, as the kernel will do it anyway. Note that in 12.1, the frame map release commit was reverted by CAF in commit I535330edb636f9457beed0849147168eaa6ae2ec, which results in the same behavior. Change-Id: I4ea66dccd1f5c9d784701242fba8700bce271579
Diffstat (limited to 'cmds')
-rw-r--r--cmds/bootanimation/BootAnimation.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/cmds/bootanimation/BootAnimation.cpp b/cmds/bootanimation/BootAnimation.cpp
index 64208d9..20c21db 100644
--- a/cmds/bootanimation/BootAnimation.cpp
+++ b/cmds/bootanimation/BootAnimation.cpp
@@ -280,11 +280,6 @@ status_t BootAnimation::initTexture(const Animation::Frame& frame)
delete codec;
}
- // 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.
- 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.
bitmap.lockPixels();