diff options
author | Damien Bargiacchi <drb@google.com> | 2018-07-24 15:20:26 -0700 |
---|---|---|
committer | Damien Bargiacchi <drb@google.com> | 2018-07-24 15:20:26 -0700 |
commit | 1a8a213b77a9fbddd170d865e82f6cc590725d92 (patch) | |
tree | ca508323d8bbf64414914291cecca6dc8b9c6c7e /cmds/bootanimation/BootAnimation.cpp | |
parent | ddc0f7eedc14881cfa4286272f258179e84249a8 (diff) |
Fix use-after-free: release the animation after we're done with it
Bug: 64504131
Change-Id: Ibddbc37d96957eeec63035d7f045a8982fb04254
Diffstat (limited to 'cmds/bootanimation/BootAnimation.cpp')
-rw-r--r-- | cmds/bootanimation/BootAnimation.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmds/bootanimation/BootAnimation.cpp b/cmds/bootanimation/BootAnimation.cpp index 8ffe5bf59315..048fb43bfa3d 100644 --- a/cmds/bootanimation/BootAnimation.cpp +++ b/cmds/bootanimation/BootAnimation.cpp @@ -859,12 +859,12 @@ bool BootAnimation::movie() mTimeCheckThread = nullptr; } - releaseAnimation(animation); - if (clockFontInitialized) { glDeleteTextures(1, &animation->clockFont.texture.name); } + releaseAnimation(animation); + return false; } |