From 1a8a213b77a9fbddd170d865e82f6cc590725d92 Mon Sep 17 00:00:00 2001 From: Damien Bargiacchi Date: Tue, 24 Jul 2018 15:20:26 -0700 Subject: Fix use-after-free: release the animation after we're done with it Bug: 64504131 Change-Id: Ibddbc37d96957eeec63035d7f045a8982fb04254 --- cmds/bootanimation/BootAnimation.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cmds/bootanimation/BootAnimation.cpp') 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; } -- cgit v1.2.3-59-g8ed1b