Fix use-after-free: release the animation after we're done with it
Bug: 64504131 Change-Id: Ibddbc37d96957eeec63035d7f045a8982fb04254
This commit is contained in:
@@ -859,12 +859,12 @@ bool BootAnimation::movie()
|
||||
mTimeCheckThread = nullptr;
|
||||
}
|
||||
|
||||
releaseAnimation(animation);
|
||||
|
||||
if (clockFontInitialized) {
|
||||
glDeleteTextures(1, &animation->clockFont.texture.name);
|
||||
}
|
||||
|
||||
releaseAnimation(animation);
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user