Fix use-after-free: release the animation after we're done with it

Bug: 64504131
Change-Id: Ibddbc37d96957eeec63035d7f045a8982fb04254
This commit is contained in:
Damien Bargiacchi
2018-07-24 15:20:26 -07:00
parent ddc0f7eedc
commit 1a8a213b77

View File

@@ -859,12 +859,12 @@ bool BootAnimation::movie()
mTimeCheckThread = nullptr;
}
releaseAnimation(animation);
if (clockFontInitialized) {
glDeleteTextures(1, &animation->clockFont.texture.name);
}
releaseAnimation(animation);
return false;
}