commit | 1a8a213b77a9fbddd170d865e82f6cc590725d92 | [log] [tgz] |
---|---|---|
author | Damien Bargiacchi <drb@google.com> | Tue Jul 24 15:20:26 2018 -0700 |
committer | Damien Bargiacchi <drb@google.com> | Tue Jul 24 15:20:26 2018 -0700 |
tree | ca508323d8bbf64414914291cecca6dc8b9c6c7e | |
parent | ddc0f7eedc14881cfa4286272f258179e84249a8 [diff] |
Fix use-after-free: release the animation after we're done with it Bug: 64504131 Change-Id: Ibddbc37d96957eeec63035d7f045a8982fb04254
diff --git a/cmds/bootanimation/BootAnimation.cpp b/cmds/bootanimation/BootAnimation.cpp index 8ffe5bf..048fb43 100644 --- a/cmds/bootanimation/BootAnimation.cpp +++ b/cmds/bootanimation/BootAnimation.cpp
@@ -859,12 +859,12 @@ mTimeCheckThread = nullptr; } - releaseAnimation(animation); - if (clockFontInitialized) { glDeleteTextures(1, &animation->clockFont.texture.name); } + releaseAnimation(animation); + return false; }